-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added docs on session management in Unity (#281)
- Loading branch information
1 parent
34fedd1
commit 9448c17
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters