HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Method FinishVerificationAsync

    FinishVerificationAsync(string, string, string, CancellationToken)

    Finishes a verification of the signed-in user: verifies that the credential is from one of their passkeys and saves the values the passkey reported through UpdateAsync(PasskeyRecord, DateTime, CancellationToken).

    Declaration
    public Task<VerifiedPasskey> FinishVerificationAsync(string userId, string ceremonyId, string credentialJson, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string userId

    The signed-in user, who must be the user the verification was started for.

    string ceremonyId

    The ID of the ceremony started with BeginVerificationAsync(string, CancellationToken).

    string credentialJson

    The credential the browser returned, as WebAuthn JSON (the PublicKeyCredential.toJSON() form).

    CancellationToken cancellationToken

    A token to cancel the operation.

    Returns
    Type Description
    Task<VerifiedPasskey>
    Exceptions
    Type Condition
    BadRequestApiException

    The credential is malformed.

    ValidationApiException

    The verification failed. The error code is CeremonyExpired, NotRegistered, WrongAccount or VerificationFailed.

    FinishVerificationAsync(ISessionToken, string, string, CancellationToken)

    Finishes a verification of the signed-in user: verifies that the credential is from one of their passkeys and saves the values the passkey reported through UpdateAsync(PasskeyRecord, DateTime, CancellationToken).

    Declaration
    public Task<VerifiedPasskey> FinishVerificationAsync(ISessionToken user, string ceremonyId, string credentialJson, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    ISessionToken user

    The session token of the signed-in user, who must be the user the verification was started for, and whose UserId identifies them.

    string ceremonyId

    The ID of the ceremony started with BeginVerificationAsync(ISessionToken, CancellationToken).

    string credentialJson

    The credential the browser returned, as WebAuthn JSON (the PublicKeyCredential.toJSON() form).

    CancellationToken cancellationToken

    A token to cancel the operation.

    Returns
    Type Description
    Task<VerifiedPasskey>
    Exceptions
    Type Condition
    BadRequestApiException

    The credential is malformed.

    ValidationApiException

    The verification failed. The error code is CeremonyExpired, NotRegistered, WrongAccount or VerificationFailed.

    © Singulink. All rights reserved.