Skip to content

TypeScript API / @laikacms/server/oauth2 / PasskeyConfig

Interface: PasskeyConfig ​

Passkey configuration

Extended by ​

Properties ​

authenticatorAttachment? ​

ts
optional authenticatorAttachment?: "platform" | "cross-platform";

Allowed authenticator types (default: both)


callbacks ​

ts
callbacks: PasskeyCallbacks;

Callbacks for storage operations


challengeExpiration? ​

ts
optional challengeExpiration?: number;

Challenge expiration in seconds (default: 300 = 5 minutes)


origin ​

ts
origin: string;

Origin for verification (e.g., 'https://example.com')


residentKey? ​

ts
optional residentKey?: "required" | "preferred" | "discouraged";

Require resident key / discoverable credential (default: preferred)


rpId ​

ts
rpId: string;

Relying Party ID (usually the domain, e.g., 'example.com')


rpName ​

ts
rpName: string;

Relying Party name (displayed to user)


userVerification? ​

ts
optional userVerification?: "required" | "preferred" | "discouraged";

Require user verification (PIN/biometric) (default: true)

Released under the MIT License.