LoginWithPassword
Methods
Task<LoginResult> LoginWithPassword(string username, string password, bool autoSignup)
Login to coherence Cloud using a specific account with a username and password.
Parameters
| Type | Name | Description |
|---|---|---|
| string | username | Username for the account which is used to log in. |
| string | password | Password for the account which is used to log in. |
| bool | autoSignup | Should an account with the provided |
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 user. This 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. 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. |