Guides building and reviewing secure auth flows: magic links, SSO (SAML/OIDC), MFA with OTP UX, session management, password reset, and GDPR compliance.
How this skill is triggered — by the user, by Claude, or both
Slash command
/saas-design-principles:authenticationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
10% of active SaaS users get stuck in password reset flows monthly, and 75% of those quit. That is a potential 7.5% monthly user base loss from authentication friction alone.
10% of active SaaS users get stuck in password reset flows monthly, and 75% of those quit. That is a potential 7.5% monthly user base loss from authentication friction alone.
Support three methods, in order of preference:
The lowest-friction option. Airtable found 94% of enterprise users preferred them. Send a one-time link to the user's email — no password to remember.
Non-negotiable for enterprise customers and SOC 2 compliance. Integrate with identity providers like Okta, Azure AD, Google Workspace.
For high-security contexts or users who prefer passwords. Always pair with multi-factor authentication.
The implementation details matter enormously:
OTP input fields:
input type="text" inputmode="numeric" — NOT type="number" (which allows scroll-wheel changes and scientific notation)autocomplete="one-time-code" for iOS/macOS autofillPreventing MFA fatigue:
Never let the reset flow become a dead end:
For applications accessible to EU citizens:
Working implementations in examples/:
examples/otp-input.md — OTP digit input with correct HTML attributes, auto-advance, paste support, and auto-submit in React and Vueexamples/session-expiry-modal.md — Countdown warning modal with session extension and post-logout notificationWhen reviewing or building authentication:
type="text" inputmode="numeric", not type="number"autocomplete="one-time-code"npx claudepluginhub oborchers/fractional-cto --plugin saas-design-principlesHardens login, registration, password reset, magic links, and SSO flows against enumeration, brute-force, and session fixation attacks.
Guides authentication implementation with JWT best practices, OAuth 2.0/OIDC flows, Passkeys/FIDO2/WebAuthn, MFA patterns, and secure session management. Use for login systems, SSO, passwordless auth, or security reviews.