Skip to content

TypeScript API / @laikacms/server/oauth2 / StoredChallenge

Interface: StoredChallenge ​

Challenge data stored during registration/authentication

Properties ​

challenge ​

ts
challenge: string;

The challenge value (base64url encoded)


expiresAt ​

ts
expiresAt: number;

Challenge expiration timestamp


type ​

ts
type: "registration" | "authentication";

Challenge type


userId? ​

ts
optional userId?: string;

User ID (for registration) or null (for authentication)

Released under the MIT License.