Table of Contents

LoginAsGuest

Methods
public Task<LoginResult> 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.

Returns
Type Description
Task<LoginResult>

An asynchronous operation returning a value representing the result of the operation.

If the operation was successful, then LoggedIn will be true, and SessionToken will contain a token which uniquely identifies the logged-in guest. This token can be stored on the user's device locally, and later used to log in to coherence Cloud again as the same guest.

If the operation was not successful, then LoggedIn will be false, and SessionToken will contain the value None. Type can be used to determine the reason for the failure.