src/types.ts

better-auth · packages/passkey/src/types.ts · typescript · MIT
auth

Type definitions for Passkey authentication and registration options in a web auth system.

// Source: https://github.com/better-auth/better-auth | License: MIT | Copyright 2024 - present, Bereket Engida
// Provided via justclaw.it.com; keep this notice with the code.
import type { GenericEndpointContext } from "@better-auth/core";
import type {
	AuthenticationExtensionsClientInputs,
	AuthenticationResponseJSON,
	CredentialDeviceType,
	RegistrationResponseJSON,
	VerifiedAuthenticationResponse,
	VerifiedRegistrationResponse,
} from "@simplewebauthn/server";
import type { InferOptionSchema } from "better-auth/types";
import type { schema } from "./schema";

/**
 * @internal
 */
export interface WebAuthnChallengeValue {
	expectedChallenge: string;
	userData: {
		id: string;
		name?: string | undefined;
		displayName?: string | undefined;
	};
	context?: string | null;
}

type Awaitab

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key