Session Restore
Browser sessions restore automatically when browser storage is available. Use a customStorageManager only for non-browser runtimes or custom persistence.
oms.wallet.session 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.
unsubscribe() during cleanup.
Parameters
| Parameter | Type | Description |
|---|---|---|
listener | OMSClientSessionExpiredListener | Callback that receives { session, expiredAt } when the wallet session expires. |
() => void, an unsubscribe function that removes the listener.
List Wallets
List wallets available to the authenticated credential.Promise<OmsWallet[]>.
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 | number or undefined | Optional token lifetime in seconds. |
customClaims | Record<string, unknown> or undefined | Optional app-provided claims. Backends should treat them as client-provided context unless they control the values. |
Promise<string>.
List Access
List wallet access grants for account-management UI.| Parameter | Type | Description |
|---|---|---|
pageSize | number or undefined | Optional page size for paginated access results. |
Promise<AccessGrant[]>.
List Access Pages
UselistAccessPages when your UI should render credential access one page at a time.
| Parameter | Type | Description |
|---|---|---|
pageSize | number or undefined | Optional page size for each access-list request. |
AsyncIterable<AccessGrantPage>.
Revoke Access
Revoke another credential’s access to the active wallet.| Parameter | Type | Description |
|---|---|---|
targetCredentialId | string | Credential ID returned by listAccess. |
Promise<void>.
Sign Out
Promise<void>.