INNER CODE UNIT · TypeScript

DEFAULT_SESSION_TTL_SECONDS

aws-devtools-labs/aws-blocks · packages/bb-auth-cognito/src/index.ts:106

const DEFAULT_SESSION_TTL_SECONDS = 400 * 86400;

/** Local alias: the full Cognito MFA factor union. */
type MfaFactor = 'SMS' | 'TOTP' | 'EMAIL';

interface MockPasskeyRecord {
	credentialId: string;
	friendlyName?: string;
	createdAt: number;
}

interface MockUserRecord {
	userSub: string;
	password: string; // plain-text: mock-only; documented in DESIGN.md
	confirmed: boolean;
	disabled: boolean;
	/** `email`, `phone_number`, `custom:department`, … (stored as Cognito would store them). */
	attributes: Record<string, string>;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…