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. |
Unit.
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. |
walletSelection | WalletSelectionBehavior | Defaults to WalletSelectionBehavior.Automatic. |
walletType | WalletType | Optional wallet type. Defaults to WalletType.Ethereum. |
CompleteAuthResult, either WalletSelected or WalletSelection.
Sign In With OIDC ID Token
Use OIDC ID-token auth for providers such as Google Sign-In with Android Credential Manager.| 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. |
walletSelection | WalletSelectionBehavior | Defaults to WalletSelectionBehavior.Automatic. |
walletType | WalletType | Optional wallet type. Defaults to WalletType.Ethereum. |
CompleteAuthResult.
Start OIDC Redirect Auth
Start an OIDC authorization-code PKCE flow and open the returned authorization URL in app-owned UI such as Custom Tabs.| 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 WalletType.Ethereum. |
relayRedirectUri | String? | Optional OAuth redirect URI override. |
authorizeParams | Map<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 fromonCreate or onNewIntent for unrelated links.
| Parameter | Type | Description |
|---|---|---|
callbackUrl | String? | Incoming app-link URL. |
walletSelection | WalletSelectionBehavior | Defaults to WalletSelectionBehavior.Automatic. |
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(). |
WalletSelectionResult.
Create Wallet
Create and activate a new wallet for the authenticated user.| Parameter | Type | Description |
|---|---|---|
walletType | WalletType | Wallet type to create. Defaults to WalletType.Ethereum. |
reference | String? | Optional app-defined wallet reference. |
WalletSelectionResult.