Skip to content

TypeScript API / @laikacms/server/oauth2 / StoredCredential

Interface: StoredCredential ​

Stored credential for a user's passkey

Properties ​

aaguid? ​

ts
optional aaguid?: string;

Authenticator AAGUID (identifies the authenticator type)


authenticatorType? ​

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

Whether this is a platform authenticator (built-in) or cross-platform (security key)


createdAt ​

ts
createdAt: number;

Credential creation timestamp


credentialId ​

ts
credentialId: string;

Unique credential ID (base64url encoded)


lastUsedAt? ​

ts
optional lastUsedAt?: number;

Last used timestamp


name? ​

ts
optional name?: string;

User-friendly name for the credential


publicKey ​

ts
publicKey: string;

Public key in COSE format (base64url encoded)


signCount ​

ts
signCount: number;

Signature counter for replay attack prevention


userId ​

ts
userId: string;

User ID this credential belongs to

Released under the MIT License.