LoginWithOneTimeCode
method in Coherence.Cloud.IAuthClient
Methods
Task<LoginResult> LoginWithOneTimeCode(string code, CancellationToken cancellationToken = default)
Login to coherence Cloud using a one-time code.
Parameters
| Type | Name | Description |
|---|---|---|
| string | code | One-time code acquired using GetOneTimeCode(CancellationToken) . |
| CancellationToken | cancellationToken | Used to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task<LoginResult> | The status of the asynchronous login operation. |
Remarks
There are two use cases for one-time codes:
- transfer progress from one platform to another,
- recover access to a lost account.
One-time codes expire after a certain time and can only be used once.
'One-Time Code Auth Enabled' must be ticked in Project Settings on your Online Dashboard for this authentication method to be usable.