Package: react-wallet-kit
Defined in: react-wallet-kit/src/providers/client/Types.tsx:283
openInPage
parameter: if true, the current page is redirected; if false (default), a popup window is used.state
parameter includes the provider, flow type, public key, and any additional state parameters for tracking or custom logic.openInPage
is true, the function redirects and returns a promise that resolves on redirect or times out after 5 minutes.openInPage
is false, a popup window is opened and the function returns a promise that resolves when the flow completes, or rejects if the window is closed or times out.onOauthSuccess
callback, triggers the onOauthRedirect
callback from provider callbacks, or completes the OAuth flow internally by calling completeOauth
.TurnkeyError
with appropriate error codes.