completeOAuthFlow()
@blobs/sdk / utils/oauthHelpers / completeOAuthFlow
completeOAuthFlow(
authUrl,state,providerId,options?):Promise<OAuthResult>
Defined in: utils/oauthHelpers.ts:339
Promise-based wrapper around openOAuthPopup.
Resolves with the OAuthResult on success and rejects on error or when the user closes the popup without completing.
Parameters
authUrl
string
Provider authorization URL.
state
string
Random state token.
providerId
string
Provider being authorized.
options?
Omit<OAuthPopupOptions, "onSuccess" | "onError" | "onClose"> = {}
Popup sizing options (callback-related options are managed internally).
Returns
Promise<OAuthResult>
A promise resolving to the OAuth result.
Throws
If the popup is blocked, the user closes it, or the provider reports an error.