Table of Contents

LoginWithOneTimeCode

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:

  1. transfer progress from one platform to another,
  2. 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.