Method ConfirmCodeAsync
ConfirmCodeAsync(string, string, string)
Sends a request to check the status of the provided sign-in code, such as if it's been confirmed by an authenticated user or is still pending. "Confirming" the sign-in code means the server has recognized and accepted the code as valid.
Declaration
Task ConfirmCodeAsync(string code, string idProvider = null, string externalToken = null)
Parameters
Type | Name | Description |
---|---|---|
string | code | The sign-in code to be confirmed. |
string | idProvider | The ID provider (optional). |
string | externalToken | The external token (optional). |
Returns
Type | Description |
---|---|
Task | A Task Representing the asynchronous operation. If the operation succeeds, the task will complete successfully (indicating a successful response from the server). Otherwise, exceptions can be thrown as described below. |
Exceptions
Type | Condition |
---|---|
AuthenticationException | Thrown when the code is null or empty. |
AuthenticationException | Thrown when the current authentication state is invalid for this operation. |
RequestFailedException | Thrown when there's an issue with the network request. |