Methods
AuthState
The SDK refreshes the tokens automatically. You do not need to control the expiration.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Authentication state and login dialog management
| Method | Parameters | Returns | Notes |
|---|---|---|---|
PromptLogin(dismissable) | bool dismissable = true | void | Shows the login dialog. |
CancelLogin() | (none) | void | Hides the login dialog. |
Logout(promptLogin) | bool promptLogin = true | void | Deletes the session. A value of true shows the login dialog again. |
IsLoggedIn() | (none) | bool | Returns true for a non-null authentication state. |
GetAccessToken() | (none) | string | Returns the access token, or an empty string for a logged-out player. |
GetState() | (none) | AuthState? | Returns the authentication state, or null for a logged-out player. |
AddListener(listener) | Action | void | Calls the listener on each change of the authentication state. |
RemoveListener(listener) | Action | void | Deletes the listener. |
| Field | Type | Notes |
|---|---|---|
AccessToken | string | JWT |
RefreshToken | string | |
Expiration | long | Unix timestamp |
RefreshTokenExpiration | long | Unix timestamp |
Was this page helpful?