Skip to content

handleOAuthCallback()

@blobs/sdk v0.1.0


@blobs/sdk / utils/oauthHelpers / handleOAuthCallback

handleOAuthCallback(providerId, success, error?): void

Defined in: utils/oauthHelpers.ts:285

Handle the OAuth callback from inside the popup window.

Persists the result for the opener and self-closes after a short delay to ensure the storage write is flushed.

Parameters

providerId

string

Provider that completed authorization.

success

boolean

Whether authorization succeeded.

error?

string

Optional error message when success is false.

Returns

void