Table of Contents

IAuthClient

interface in Coherence.Cloud

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
LoginAsGuest

Login to coherence Cloud using a guest account, without providing any username or password. The player is authenticated using a randomly generated username and password.

LoginWithPassword

Login to coherence Cloud using a specific account with a username and password. This requires 'Persisted Player Accounts' to be enabled in Project Settings on your coherence Dashboard.

LoginWithToken

Login to coherence Cloud using a SessionToken acquired from the result of a previous login operation.

Logout
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.