epic-auth

Implement user authentication, sessions, OAuth, 2FA, and passkeys for the Epic Stack.

Updated May 18, 2026
One-click install
npx skills add https://github.com/mbdeaton/phys-notes --skill epic-auth-mbdeaton
Or copy as Structured Prompt for Agentâ–¼
Please help me install this Agent Skill.
Skill: epic-auth
Source: https://github.com/mbdeaton/phys-notes/tree/main/docs/skills/epic-auth
Command: npx skills add https://github.com/mbdeaton/phys-notes --skill epic-auth-mbdeaton

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide and implementation patterns for securing user access, managing sessions, and handling various authentication flows within the Epic Stack framework.

Core Features & Use Cases

  • User Authentication: Implement robust login, signup, and logout flows.
  • Session Management: Securely manage user sessions using cookies and database storage.
  • OAuth Integration: Configure and integrate with third-party OAuth providers like GitHub and Google.
  • Multi-Factor Authentication: Implement 2FA using TOTP and secure passkey authentication via WebAuthn.
  • Email Verification & Password Reset: Handle email verification for new signups and facilitate secure password resets.

Quick Start

Use the epic-auth skill to implement user login with email and password.

Frequently Asked Questions about epic-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement email and password user authentication in the Epic Stack?â–¼

User authentication in the Epic Stack is implemented using detailed patterns for email and password flows, including signup, login, and logout. It provides specific examples for least privilege validation and secure credential handling.

What is the best way to manage secure user sessions with cookies?â–¼

Secure session management uses cookie-based sessions combined with database storage. This approach ensures fail-fast validation and least privilege access, addressing common mistakes like insecure session storage or improper cookie configuration.

Can I configure OAuth providers like GitHub and Google for login?â–¼

Yes, you can configure OAuth integration with third-party providers like GitHub and Google. The guide covers the implementation patterns needed to route external OAuth flows through the Epic Stack.

Does the Epic Stack support 2FA and passkeys via WebAuthn?â–¼

Yes, the Epic Stack supports multi-factor authentication using TOTP for 2FA and secure passkey authentication via WebAuthn. These flows integrate with existing session management to provide layered access security.

How do I handle email verification and password reset flows?â–¼

Email verification for new signups and secure password resets are handled through dedicated authentication flows. The guide provides detailed examples for implementing these processes while avoiding common security mistakes.

Why does my authentication flow fail fail-fast validation?â–¼

Authentication validation fails fast to enforce least privilege and prevent invalid data from processing further. Common mistakes include improper cookie-based session handling or missing validation steps in the email, OAuth, or WebAuthn flows.