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

Search Results for

    Method AddPasskeys

    AddPasskeys<TStore>(IServiceCollection, Action<PasskeyOptions>?)

    Registers PasskeyService (scoped) with the app's passkey store, the SignInCodes that a passkey sign-in can continue with, and the IShortLivedStore that keeps ceremonies between their begin and finish requests (see AddSignInCodes(IServiceCollection, Action<SignInCodeOptions>?)).

    Declaration
    public static IServiceCollection AddPasskeys<TStore>(this IServiceCollection services, Action<PasskeyOptions>? configure = null) where TStore : class, IPasskeyStore
    Parameters
    Type Name Description
    IServiceCollection services

    The service collection to add the passkey services to.

    Action<PasskeyOptions> configure

    An action that configures the options. Options can also be bound from configuration, for example with services.AddPasskeys<TStore>(o => builder.Configuration.GetSection("Passkeys").Bind(o)).

    Returns
    Type Description
    IServiceCollection
    Type Parameters
    Name Description
    TStore

    The app's passkey store, which is registered as a scoped IPasskeyStore.

    Remarks

    The options are validated when the app starts.

    © Singulink. All rights reserved.