Method BeginVerificationAsync
BeginVerificationAsync(string, CancellationToken)
Starts a verification of the signed-in user with one of their passkeys, to confirm it is them before a sensitive action.
Declaration
public Task<PasskeyCeremony> BeginVerificationAsync(string userId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | userId | The signed-in user. |
| CancellationToken | cancellationToken | A token to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task<PasskeyCeremony> |
Exceptions
| Type | Condition |
|---|---|
| ConflictApiException | The user has no passkeys (NoPasskeys). |
BeginVerificationAsync(ISessionToken, CancellationToken)
Starts a verification of the signed-in user with one of their passkeys, to confirm it is them before a sensitive action.
Declaration
public Task<PasskeyCeremony> BeginVerificationAsync(ISessionToken user, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ISessionToken | user | The session token of the signed-in user, whose UserId identifies them. |
| CancellationToken | cancellationToken | A token to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task<PasskeyCeremony> |
Exceptions
| Type | Condition |
|---|---|
| ConflictApiException | The user has no passkeys (NoPasskeys). |