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.
nil during cleanup.
Parameters
| 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 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 | UInt32? | Optional page size for each access-list request while loading all pages. |
[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 for each access-list 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.