Skip to main content
These public types describe the inputs and results for custom OAuth and authentication-factor management.

Import

Custom OAuth and OIDC

providerConfigHandle identifies the partner-configured connection. redirectCallbacks takes onOAuthPopup or onOAuthUrl; sessionPollingCallbacks takes onPoll, onCancel, and isCanceled. authenticateWithCustomOAuth tracks completion through sessionPollingCallbacks only, so oAuthPollingCallbacks has no effect.

External wallet connection

The connect callback must resolve the connected wallet and its chain ID. The SDK uses that result to advance its connection flow.

Factor management

Choose exactly one AddAuthFactorParams variant by its method. Adding or removing a login always asks the user to re-prove their account on a Para-hosted window, and the proof for the new login (code, provider sign-in, or wallet signature) happens there too. Call these methods from a click handler so the browser lets the window open. If you have to do slow work first, such as connecting a wallet, open a blank window in the click handler and pass it as popupWindow. ContinueAuthFactorLinkParams is the input the Para-hosted page uses to advance the flow; your app doesn’t call it.

AuthFactorView