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

Search Results for

    Method FinishSignInAsync

    FinishSignInAsync(string, string, string?, CancellationToken)

    Finishes a sign-in: verifies the credential, saves the values the passkey reported through UpdateAsync(PasskeyRecord, DateTime, CancellationToken), and returns the passkey and its user. The app then signs the user in, or creates a sign-in code bound to CodeChallenge for the client to redeem.

    Declaration
    public Task<VerifiedPasskey> FinishSignInAsync(string ceremonyId, string credentialJson, string? codeVerifier = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string ceremonyId

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

    string credentialJson

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

    string codeVerifier

    The PKCE code verifier, required if the sign-in was started with a code challenge and not allowed otherwise.

    CancellationToken cancellationToken

    A token to cancel the operation.

    Returns
    Type Description
    Task<VerifiedPasskey>
    Exceptions
    Type Condition
    BadRequestApiException

    The credential is malformed, or a code verifier was given for a sign-in that was started without a code challenge.

    UnauthorizedApiException

    The sign-in failed. The error code is CeremonyExpired, CodeVerifierMismatch, NotRegistered, WrongAccount (for a sign-in started for a user) or VerificationFailed.

    © Singulink. All rights reserved.