diff --git a/docs/.DS_Store b/docs/.DS_Store index 384c9cb8dd..99a6944efa 100644 Binary files a/docs/.DS_Store and b/docs/.DS_Store differ diff --git a/docs/pages/sdk/unity/session-management.mdx b/docs/pages/sdk/unity/session-management.mdx new file mode 100644 index 0000000000..aa12f5f1b3 --- /dev/null +++ b/docs/pages/sdk/unity/session-management.mdx @@ -0,0 +1,27 @@ +# Session management + +Once you've authenticated your user with the Sequence APIs and established a session, there are a number of methods available to you to manage the session. + +## List Sessions + +Use the `ListSessions` method to find all active sessions associated with this user/wallet. + +## Drop Session + +If you wish to drop/end a session, you can use the `DropSession` method and provide the session id you wish to drop. + +## Drop This Session + +The `DropThisSession` method can be use if you wish to drop/end the current session. In other words, if you wish to log the user out. + +:::note +If you are using the default `LoginPanel` and you have not enabled `StoreSessionPrivateKeyInSecureStorage` or are on an unsupported platform (see [Recovering Sessions](/sdk/unity/recovering-sessions)), the `WaaSSessionManager` prefab attached to the `LoginPanel` will automatically call this method `OnApplicationQuit` +::: + +## Get Account List + +If you wish to fetch the `Account`s associated with the user's wallet, you can use the `GetAccountList` method. + +## Get Id Token + +If you wish to retrieve an id token JWT from the Sequence APIs to validate the authentication on your backend, you can use the `GetIdToken` method and optionally provide a nonce. \ No newline at end of file diff --git a/nav.ts b/nav.ts index 7b02f1ef92..3b0afdfc7c 100644 --- a/nav.ts +++ b/nav.ts @@ -590,6 +590,7 @@ export const sidebar = { { text: 'Read from Blockchain', link: '/sdk/unity/read-from-blockchain' }, { text: 'Sign Messages', link: '/sdk/unity/sign-messages' }, { text: 'Recovering Sessions', link: '/sdk/unity/recovering-sessions' }, + { text: 'Session Management', link: '/sdk/unity/session-management' }, { text: 'On-Ramp Funds via Credit Card', link: '/sdk/unity/onboard-user-funds' }, { text: 'Marketplace', link: '/sdk/unity/marketplace' }, {