OAuthCallbackProps
Agent Runtimes / identity/OAuthCallback / OAuthCallbackProps
Interface: OAuthCallbackProps
Defined in: identity/OAuthCallback.tsx:23
Props for OAuthCallback component
Properties
autoClose?
optionalautoClose?: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?
optionalautoCloseDelay?:number
Defined in: identity/OAuthCallback.tsx:44
Delay before auto-closing (in ms)
Default
1500
errorMessagePrefix?
optionalerrorMessagePrefix?:string
Defined in: identity/OAuthCallback.tsx:32
Custom error message prefix
onError?
optionalonError?: (error) =>void
Defined in: identity/OAuthCallback.tsx:54
Callback when processing fails
Parameters
error
Error
Returns
void
onSuccess?
optionalonSuccess?: (provider) =>void
Defined in: identity/OAuthCallback.tsx:49
Callback when processing completes successfully
Parameters
provider
string
Returns
void
redirectUrl?
optionalredirectUrl?: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?
optionalshowCloseButton?:boolean
Defined in: identity/OAuthCallback.tsx:66
Whether to show the close button
Default
true
successMessage?
optionalsuccessMessage?:string
Defined in: identity/OAuthCallback.tsx:27
Custom success message