<b>Never store passwords — store a slow hash</b> (argon2id / bcrypt) with per-user salt. And prefer federation: let Google/Apple/an enterprise IdP hold the credential.
<b>Access tokens are short-lived; refresh tokens rotate.</b> Keep refresh state server-side so you can revoke — a stolen refresh token must be killable.
<b>Signing keys are security-owned and rotate.</b> Publish public keys at a JWKS endpoint with a <code>kid</code>; resource APIs verify signature + expiry + audience, never call the auth DB.
<b>MFA / step-up</b> (TOTP, WebAuthn/passkeys) for sensitive actions — auth is not one gate at login, it is graded by risk.
<b>Enterprise = SAML / OIDC SSO + SCIM provisioning.</b> This is usually a sales requirement, not an afterthought; plan for per-tenant IdP config.
<b>Sessions:</b> secure/HttpOnly/SameSite cookies for browsers, secure storage for native. Rate-limit login, lock on abuse, log every auth event.
<b>Account lifecycle:</b> email verification, password reset (single-use, expiring), and deletion/export for compliance (GDPR).