Session State
Completed wallet sessions are restored automatically when the Android-backedOMSClient is created.
client.session only reports completed wallet-session state. Pending email OTP state is in memory, and OIDC redirect verifier state is stored internally for callback handling.
Returns
Returns OMSClientSessionState with walletAddress, expiresAt, loginType, and sessionEmail.
Session Expiry Events
Register anonSessionExpired listener when the app should react as soon as the active wallet session expires.
| Parameter | Type | Description |
|---|---|---|
listener | (OMSClientSessionExpiredEvent) -> Unit | Callback that receives session and expiredAt when the wallet session expires. |
() -> Unit, an unsubscribe function that removes the listener.
List Wallets
List wallets available to the authenticated credential.List<Wallet>.
Get ID Token
Request an ID token for the active wallet session. Send this token to your backend when using backend wallet verification.| Parameter | Type | Description |
|---|---|---|
ttlSeconds | UInt? | Optional token lifetime in seconds. |
customClaims | Map<String, JsonElement>? | Optional custom claims to include in the token. |
String.
List Access
List credentials that currently have access to the active wallet.| Parameter | Type | Description |
|---|---|---|
pageSize | UInt? | Optional page size used while following Wallet API cursors. |
List<CredentialInfo>.
List Access Pages
Stream credential-access pages when your UI wants page-at-a-time rendering.| Parameter | Type | Description |
|---|---|---|
pageSize | UInt? | Optional page size used for each Wallet API request. |
Flow<ListAccessResponse>.
List Access Page
Fetch one credential-access page with an optional cursor.| Parameter | Type | Description |
|---|---|---|
pageSize | UInt? | Optional page size for this request. |
cursor | String? | Optional cursor returned by a previous page. |
ListAccessResponse.
Revoke Access
Revoke another credential’s access to the active wallet.| Parameter | Type | Description |
|---|---|---|
targetCredentialId | String | Credential ID returned by listAccess. |
Unit.
Sign Out
Unit.