Session Restore
The default storage backend is browserlocalStorage when it is available. Non-browser runtimes use in-memory storage unless you provide a custom StorageManager. OIDC redirect state defaults to browser sessionStorage.
Browser signing defaults to a non-extractable WebCrypto P-256 credential stored through IndexedDB when available, so raw private key bytes are not written to localStorage.
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.
| 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 custom claims to include in the token. |
Promise<string>.
List Access
List credentials that currently have access to the active wallet.| Parameter | Type | Description |
|---|---|---|
pageSize | number or undefined | Optional page size used while following Wallet API cursors. |
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 Wallet API 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>.