AuthClient
Specifies a set of methods that can be used to log in to coherence Cloud, properties to determine if we are currently logged in or not, and events for getting notified about relevant things happening.
Properties
LoggedIn | Is the client currently logged in to coherence Cloud? |
Methods
Dispose | |
Finalize | |
ForPlayer | Initializes a new instance of AuthClient for a player. |
LoginAsGuest | Login to coherence Cloud using a guest account, without providing any username or password.
|
LoginWithPassword | Login with a specific account to the coherence Cloud. This requires Persistent Accounts to be enabled in your coherence Dashboard. |
LoginWithToken | Login to coherence Cloud using a SessionToken acquired from the result of a previous login operation. |
Logout | Clear the cached Login credentials and be considered as logged out from the coherence Cloud. |
Events
OnError | Event that is invoked when a login request has failed, and when the client's connection to coherence Cloud has been forcefully closed by the server. Type describes the type of the failure. |
OnLogin | Event that is invoked when the client has successfully logged in to coherence Cloud. |
OnLogout | Event that is invoked when the client has logged out from coherence Cloud. |