Practic Passkey - v1.0.0
    Preparing search index...

    Type Alias PasskeyServerOptions

    type PasskeyServerOptions = {
        adminKeys?: string[];
        challengeLifetime?: number;
        channels?: Record<string, Channel>;
        codeAttempts?: number;
        codeLifetime?: number;
        engines?: Record<string, PasskeyEngineFactory>;
        isAdmin?: AdminDependencies["isAdmin"];
        limiter?: Limiter;
        root?: StorageEngine;
    }
    Index
    adminKeys?: string[]

    Keys that administer every app, sent as Authorization: Bearer <key>, such as one from a secret environment variable; long random strings, since they open everything.

    challengeLifetime?: number

    Milliseconds the browser has to answer a challenge; 5 minutes by default.

    channels?: Record<string, Channel>

    Channels by name, that app records choose per address kind, such as { mail: smtp, sms: twilio }. A kind an app does not choose for goes to the channel named default, or to the console when there is none.

    codeAttempts?: number

    Wrong codes accepted before a code is discarded; 5 by default.

    codeLifetime?: number

    Milliseconds a code stays valid; 10 minutes by default.

    engines?: Record<string, PasskeyEngineFactory>

    Engine factories app records name in their config and data, such as { postgres: (namespace) => … }.

    Decides who administers each app instead of its admins setting, such as from the host's own roles; called with the signed-in account and the app id. The setting is then ignored.

    limiter?: Limiter

    Counts hits for the rate limits in each app's settings, such as limiterMemory() for a single process; by default each app's data store, so every server sharing it shares the counts.

    The root store: the apps the endpoint serves, and the default app's settings, access entries, accounts and passkeys; .data/passkey.json unless given.