Session Restore
The SDK stores wallet metadata and the request-signing credential in the device keychain. A saved completed session is restored automatically whenOMSClient is created.
oms.wallet.session returns SessionState with walletAddress, expiresAt, loginType, and sessionEmail.
Session Expiry Events
AssignonSessionExpired when the app should react as soon as the active wallet session expires.
| Parameter | Type | Description |
|---|---|---|
onSessionExpired | ((SessionExpiredEvent) -> Void)? | Optional handler that receives session and expiredAt when the wallet session expires. |
Void.
List Wallets
List wallets available to the authenticated credential.[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 | UInt32? | Optional token lifetime in seconds. |
customClaims | [String: WebRPCJSONValue]? | Optional custom claims to include in the token. |
String.
List Access
List credentials that currently have access to the active wallet.[CredentialInfo].
List Access Pages
UselistAccessPages when your UI should render credential access one page at a time.
| Parameter | Type | Description |
|---|---|---|
pageSize | UInt32? | Optional page size used for each Wallet API request. |
ListAccessPages, an async sequence of ListAccessResponse values.
List Access Page
Fetch one credential-access page with an optional cursor.| Parameter | Type | Description |
|---|---|---|
pageSize | UInt32? | 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(). |
Void.
Sign Out
Void.