Method CheckAsync
CheckAsync(string, string, CancellationToken)
Gets the status of a link for the new device, which the app returns to it as-is. Once the link is approved, the status contains a one-time sign-in code bound to the link's code challenge.
Declaration
public Task<DeviceLinkStatus> CheckAsync(string id, string pollSecret, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | The link ID from Id. |
| string | pollSecret | The poll secret from PollSecret. |
| CancellationToken | cancellationToken | A token to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task<DeviceLinkStatus> |
Remarks
Exceptions
| Type | Condition |
|---|---|
| UnauthorizedApiException | The link is unknown or expired, or the poll secret is wrong (DeviceLinkExpired). |