AuthClient
Constructors
AuthClient |
Properties
GuestPassword | |
LoggedIn | |
SessionToken | |
SessionTokenRefreshResult | |
UserId | |
UserName |
Methods
Dispose | |
LoginAsGuest | Login with a Guest Account to the coherence Cloud. |
LoginWithPassword | Login with a specific account to the coherence Cloud. This requires Persistent Accounts to be enabled in your coherence Dashboard. |
Logout | Clear the cached Login credentials and be considered as logged out from the coherence Cloud. |
Events
OnConcurrentConnection | Server push message that will be sent when your connection to the coherence Cloud has been forcefully closed. Usually this happens when a concurrent connection is detected, e.g. running multiple game clients for the same player. When this happens the game should present a prompt to the player to inform them that there is another instance of the game running. The game should wait for player input and never try to reconnect on its own or else the two game clients would disconnect each other indefinitely. |
OnLogin | |
OnLogout | |
OnSessionRefreshed | Wait for the AuthClient to check if it is able to refresh a previously cached Session Token. This method should always be used before attempting to log in manually. |