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. |
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 | Optional wallet type. Defaults to .ethereum. |
walletSelection | WalletSelectionBehavior | Defaults to .automatic. Use .manual to receive a pending wallet selection. |
CompleteAuthResult, either .walletSelected(...) or .walletSelection(PendingWalletSelection).
Sign In With OIDC Token
Use OIDC ID-token auth for providers such as Google Sign-In. Pass the provider token plus the issuer and audience used to mint it.startOidcRedirectAuth and handleOidcRedirectCallback for authorization-code PKCE redirect auth.
Parameters
| Parameter | Type | Description |
|---|---|---|
idToken | String | OIDC ID token from the identity provider. |
issuer | String | Expected token issuer, such as https://accounts.google.com. |
audience | String | Expected token audience. |
walletType | WalletType | Optional wallet type. Defaults to .ethereum. |
walletSelection | WalletSelectionBehavior | Defaults to .automatic. Use .manual to receive a pending wallet selection. |
CompleteAuthResult, either .walletSelected(...) or .walletSelection(PendingWalletSelection).
Start OIDC Redirect Auth
Start an OIDC authorization-code PKCE flow and open the returned authorization URL in a browser orASWebAuthenticationSession.
| Parameter | Type | Description |
|---|---|---|
provider | OidcProviderConfig | OIDC provider configuration. |
redirectUri | String | App callback URL that receives the provider redirect. |
walletType | WalletType | Optional wallet type. Defaults to .ethereum. |
relayRedirectUri | String? | Optional OAuth redirect URI override. |
authorizeParams | [String: String] | Extra authorization query parameters passed to the provider. |
StartOidcRedirectAuthResult with authorizationUrl, state, and challenge.
Handle OIDC Redirect Callback
Pass incoming app-link URLs to the callback handler. It is safe to call for unrelated links.| Parameter | Type | Description |
|---|---|---|
callbackUrl | String? | Incoming app-link URL. |
walletSelection | WalletSelectionBehavior | Defaults to .automatic. Use .manual to receive a pending wallet selection. |
OidcRedirectAuthResult.
Use Wallet
Activate an existing wallet by server-side wallet ID.| Parameter | Type | Description |
|---|---|---|
walletId | String | Wallet ID returned by auth completion or listWallets(). |
WalletActivationResult.
Create Wallet
Create and activate a new wallet for the authenticated user.| Parameter | Type | Description |
|---|---|---|
walletType | WalletType | Wallet type to create. Defaults to .ethereum. |
reference | String? | Optional app-defined wallet reference. |
WalletActivationResult.