Start Email Auth
Send a one-time code to the user’s email address.| Parameter | Type | Description |
|---|---|---|
email | string | Email address that receives the one-time code. |
Promise<void>.
Complete Email Auth
Complete the flow with the code entered by the user. Automatic mode selects the first matching wallet or creates one when none exists.| Parameter | Type | Description |
|---|---|---|
code | string | One-time code entered by the user. |
walletType | WalletType or undefined | Optional wallet type. Defaults to WalletType.Ethereum. |
walletSelection | 'automatic' or 'manual' | Defaults to 'automatic'. Use 'manual' to receive a pending wallet selection. |
Promise<CompleteEmailAuthResult> in automatic mode, or Promise<PendingWalletSelection> in manual mode.
| Field | Type | Description |
|---|---|---|
walletAddress | Address | Active non-custodial wallet address. |
wallet | OmsWallet | Selected or created wallet. |
wallets | OmsWallet[] | Wallets returned by auth completion. |
credential | WalletCredential | Credential added by auth completion. |
Start OIDC Redirect Auth
Start an OIDC authorization-code PKCE flow. The default environment includes agoogle provider.
| Parameter | Type | Description |
|---|---|---|
provider | Provider name or provider config | Configured provider name, such as google, or an inline provider config. |
redirectUri | string | App callback URL that receives the provider redirect. |
walletType | WalletType or undefined | Optional wallet type. Defaults to WalletType.Ethereum. |
relayRedirectUri | string or undefined | Optional relay callback URL when the provider must redirect through a relay. |
authorizeParams | Record<string, string> or undefined | Extra authorization query parameters passed to the provider. |
Promise<StartOidcRedirectAuthResult>.
| Field | Type | Description |
|---|---|---|
url | string | Provider authorization URL. |
state | string | Encoded OIDC state value stored for callback validation. |
challenge | string | Wallet auth challenge used in the OIDC request. |
Complete OIDC Redirect Auth
Complete the redirect flow after the provider sends the user back to your app.| Parameter | Type | Description |
|---|---|---|
callbackUrl | string | Full callback URL containing the OIDC code and state query parameters. |
cleanUrl | boolean or undefined | Whether to remove OIDC query parameters from the current URL after parsing. |
replaceUrl | URL replacement callback or undefined | Custom URL replacement callback for non-browser runtimes or routers. |
walletSelection | 'automatic' or 'manual' | Defaults to 'automatic'. Use 'manual' to receive a pending wallet selection. |
Promise<CompleteOidcRedirectAuthResult> in automatic mode, or Promise<PendingWalletSelection> in manual mode.
Sign In With OIDC Redirect
Use this browser convenience wrapper when one call should start auth on normal pages and complete auth on callback pages.| Parameter | Type | Description |
|---|---|---|
provider | Provider name or provider config | Configured provider name or inline provider config. |
redirectUri | string or undefined | App callback URL. Defaults to the current browser URL without OIDC callback params. |
walletType | WalletType or undefined | Optional wallet type. Defaults to WalletType.Ethereum. |
walletSelection | 'automatic' or 'manual' | Defaults to 'automatic'. |
relayRedirectUri | string or undefined | Optional relay callback URL. |
authorizeParams | Record<string, string> or undefined | Extra authorization query parameters passed to the provider. |
cleanUrl | boolean or undefined | Whether callback completion should clean the URL. Defaults to true. |
currentUrl | string or undefined | Explicit current URL for non-browser routing flows. |
assignUrl | URL assignment callback or undefined | Custom redirect function. Defaults to window.location.assign. |
replaceUrl | URL replacement callback or undefined | Custom callback URL cleanup function. |
Promise<CompleteOidcRedirectAuthResult | PendingWalletSelection | void>.
Use Wallet
Activate an existing wallet by server-side wallet ID.| Parameter | Type | Description |
|---|---|---|
walletId | string | Wallet ID returned by auth completion or listWallets. |
Promise<WalletActivationResult>.
Create Wallet
Create and activate a new wallet for the authenticated user.| Parameter | Type | Description |
|---|---|---|
type | WalletType or undefined | Wallet type to create. Defaults to WalletType.Ethereum. |
reference | string or undefined | Optional app-defined wallet reference. |
Promise<WalletActivationResult>.