OAuthPopupOptions
@blobs/sdk / utils/oauthHelpers / OAuthPopupOptions
Defined in: utils/oauthHelpers.ts:13
Options accepted by openOAuthPopup and completeOAuthFlow.
Properties
width?
optionalwidth?:number
Defined in: utils/oauthHelpers.ts:15
Popup window width in pixels (default 600).
height?
optionalheight?:number
Defined in: utils/oauthHelpers.ts:17
Popup window height in pixels (default 700).
onSuccess?
optionalonSuccess?: (result) =>void
Defined in: utils/oauthHelpers.ts:19
Called when the OAuth flow succeeds.
Parameters
result
Returns
void
onError?
optionalonError?: (error) =>void
Defined in: utils/oauthHelpers.ts:21
Called with a message when the OAuth flow fails.
Parameters
error
string
Returns
void
onClose?
optionalonClose?: () =>void
Defined in: utils/oauthHelpers.ts:23
Called when the popup closes without completing the flow.
Returns
void
pollInterval?
optionalpollInterval?:number
Defined in: utils/oauthHelpers.ts:25
Polling interval in milliseconds for popup status (default 1000).