Skip to main content

OAuthCallbackProps

Agent Runtimes


Agent Runtimes / identity/OAuthCallback / OAuthCallbackProps

Interface: OAuthCallbackProps

Defined in: identity/OAuthCallback.tsx:23

Props for OAuthCallback component

Properties

autoClose?

optional autoClose?: boolean

Defined in: identity/OAuthCallback.tsx:38

Whether to automatically close the window/tab on success

Default

true for popup flow, false for redirect flow

autoCloseDelay?

optional autoCloseDelay?: number

Defined in: identity/OAuthCallback.tsx:44

Delay before auto-closing (in ms)

Default

1500

errorMessagePrefix?

optional errorMessagePrefix?: string

Defined in: identity/OAuthCallback.tsx:32

Custom error message prefix


onError?

optional onError?: (error) => void

Defined in: identity/OAuthCallback.tsx:54

Callback when processing fails

Parameters

error

Error

Returns

void


onSuccess?

optional onSuccess?: (provider) => void

Defined in: identity/OAuthCallback.tsx:49

Callback when processing completes successfully

Parameters

provider

string

Returns

void


redirectUrl?

optional redirectUrl?: string

Defined in: identity/OAuthCallback.tsx:60

URL to redirect to after success (for redirect flow) If not provided, will try to use window.opener for popup flow


showCloseButton?

optional showCloseButton?: boolean

Defined in: identity/OAuthCallback.tsx:66

Whether to show the close button

Default

true

successMessage?

optional successMessage?: string

Defined in: identity/OAuthCallback.tsx:27

Custom success message