Authentication

From oborchers/fractional-cto · View interactive version

Authentication is an AI agent skill from the GitHub repository oborchers/fractional-cto. This skill should be used when the user is building or reviewing login flows, magic links, SSO (SAML/OIDC), multi-factor authentication (MFA), OTP input fields, password reset, or session management. Covers the modern auth stack hierarchy, MFA fatigue prevention, session expiry UX, and GDPR complian

How to use this skill

Skill file

Authentication Should Be Invisible

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.

The Modern Auth Stack

Support three methods, in order of preference:

1. Magic Links (Frictionless Default)

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.

2. SSO via SAML/OIDC (Enterprise)

Non-negotiable for enterprise customers and SOC 2 compliance. Integrate with identity providers like Okta, Azure AD, Google Workspace.

3. Password + MFA (Fallback)

For high-security contexts or users who prefer passwords. Always pair with multi-factor authentication.

MFA UX Details

The implementation details matter enormously:

OTP input fields:

Preventing MFA fatigue:

Session Management

Password Reset

Never let the reset flow become a dead end:

GDPR Compliance

For applications accessible to EU citizens:

Examples

Working implementations in examples/:

Review Checklist

When reviewing or building authentication:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.