INNER CODE UNIT · TypeScript

CODE_TTL

aws-devtools-labs/aws-blocks · packages/bb-auth-basic/src/index.ts:99

const CODE_TTL = 600; // 10 minutes

/**
 * bcrypt cost factor. 12 is a sensible default aligned with current OWASP
 * guidance; raise it for higher-value credentials.
 */
const BCRYPT_COST = 12;

/**
 * Simple username/password authentication composed from KVStore.
 *
 * ## Use Cases
 *
 * - Simple user authentication without external identity providers
 * - Internal tools and admin panels
 * - Prototyping and MVPs
 * - Applications with custom user management requirements
 *

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…