Session State
Completed wallet sessions are restored automatically when the Android-backedOMSClient is created.
client.session reports completed wallet-session state. If an auth flow is interrupted before completion, complete it through the matching callback flow or start authentication again.
Returns
Returns OMSClientSessionState with walletAddress, expiresAt, loginType, and sessionEmail.
expiresAt is an ISO-8601 timestamp string returned by the wallet API.
Session Expiry Events
Register anonSessionExpired listener when the app should react as soon as the active wallet session expires.
unsubscribe() during cleanup.
Parameters
| 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.
event.expiredAt is an ISO-8601 timestamp string returned by the wallet API.
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 app-provided claims. Backends should treat them as client-provided context unless they control the values. |
String.
List Access
List wallet access grants for account-management UI.| Parameter | Type | Description |
|---|---|---|
pageSize | UInt? | Optional page size for paginated access results. |
List<CredentialInfo>.
Advanced: List Access Pages
Stream credential-access pages when your UI wants page-at-a-time rendering.| Parameter | Type | Description |
|---|---|---|
pageSize | UInt? | Optional page size for each access-list request. |
Flow<ListAccessResponse>.
Advanced: 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.