Table of Contents

LoginResult

class in Coherence.Cloud

Represents the result of an IAuthClient login operation.

Constructors
LoginResult
Properties
EqualityContract
ErrorMessage
ErrorType
GuestPassword

Automatically generated random password for the player account, if successfully logged in as a guest; otherwise, an empty string.

Id

Identifier for the logged-in player account, if the login operation was successful; otherwise, an empty string.

KeyValuePairStoreState
LobbyIds
LoggedIn

true if the login operation was successful, or if it was cancelled because the client is already logged in; otherwise, false.

PlayerAccount

The player account that was successfully logged in, or PlayerAccount.None if the login operation failed.

SessionToken

Token uniquely identifying the logged-in player account.

The token can be stored on the user's device locally, and later used to log in to coherence Cloud again using the same credentials, without the user needing to provide them again.

Type

Describes the type of the result.

Coherence.Runtime.Result.Success if the login operation was successful; otherwise, the type of login failure.

Username

Username of the player account, if one has been associated with it; otherwise, an empty string.

Methods
Equals
GetHashCode
PrintMembers
ToString
Operators
op_Equality
op_Implicit
op_Inequality
See Also
LoginAsGuest(CancellationToken)
LoginWithPassword(string, string, bool, CancellationToken)
LoginWithSessionToken(SessionToken, CancellationToken)
OnLogin