Skip to main content
Use this API with the Para SDK client.

Import

Use authenticateWithOAuth for the built-in providers. Pass provider: "CUSTOM_OIDC" for an OIDC connection or "CUSTOM_OAUTH" for an OAuth 2.0 connection, and set providerConfigHandle to the connection’s handle. The connection must be enabled for your API key. The sign-in runs on a Para-hosted page. Call this method from a click handler and pass redirectCallbacks.onOAuthPopup: the SDK opens a blank popup right away, hands it to your callback, and navigates it to the hosted page. With onOAuthUrl instead, you receive the URL to open yourself. With neither, the SDK navigates the current window. The method resolves once the session is ready and wallets are set up; track it with sessionPollingCallbacks (oAuthPollingCallbacks is not used).