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

    Function policyAccount

    • Whether an existing account may sign in or add a passkey: it must be active, and no denied entry may cover it, so an address removed from a site is locked out even while it holds passkeys.

      Parameters

      • account: {
            address: string;
            createdAt: string;
            createdVia: "signup" | "invited";
            displayName?: string;
            kind: PasskeyAddressKind;
            status: "active" | "disabled";
            userId: string;
        }

        The account.

        • address: string
        • createdAt: string
        • createdVia: "signup" | "invited"

          Whether the account signed up while sign-up was open, or was let in by an allowed entry or created by an admin.

        • OptionaldisplayName?: string

          Name shown for the account; its address when unset.

        • kind: PasskeyAddressKind
        • status: "active" | "disabled"

          A disabled account can neither sign in nor add passkeys.

        • userId: string

          WebAuthn user handle, the same for every passkey of the account, so a device replaces rather than duplicates it.

      • rule: "allowed" | "denied" | undefined

        What the access entries say about its address.

      Returns boolean