moai-security-auth

Implement MFA, WebAuthn, OAuth 2.1, and JWT-based authentication with NextAuth.js 5.x.

4|1|Updated Nov 18, 2025
One-click install
npx skills add https://github.com/AJBcoding/claude-skill-eval --skill moai-security-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-security-auth
Source: https://github.com/AJBcoding/claude-skill-eval/tree/main/skills/moai-security-auth
Command: npx skills add https://github.com/AJBcoding/claude-skill-eval --skill moai-security-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enterprise authentication with MFA, WebAuthn, OAuth2.1, and JWT session management.

Core Features & Use Cases

  • ✅ MFA and WebAuthn (FIDO2) support
  • ✅ OAuth 2.1 / OpenID Connect integration
  • ✅ JWT-based session management and token refresh
  • ✅ Secure session handling and SSO readiness

Quick Start

Implement NextAuth.js 5.x with MFA and WebAuthn support for a secure login flow.

Frequently Asked Questions about moai-security-auth

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

FAQPage Schema
How do I implement MFA and WebAuthn authentication in my web application?

MFA and WebAuthn add passwordless, phishing-resistant authentication layers. This Skill implements FIDO2/WebAuthn registration and authentication flows, MFA enrollment workflows, and secure session management across distributed applications using modern patterns like NextAuth.js 5.x and Passport.js compatibility.

What's the difference between OAuth 2.1, JWT sessions, and traditional password authentication?

OAuth 2.1 delegates authentication to trusted providers; JWT-based sessions are stateless tokens verified by your server; passwords require secure storage. This Skill integrates OAuth 2.1/OpenID Connect providers, implements JWT token refresh mechanisms, and manages secure session handling for each approach.

Can I migrate users from password-based login to passwordless authentication?

Passwordless migrations require phased rollouts with fallback support. This Skill covers passwordless migration strategies, passkey enrollment and authentication flows, and SSO setup to transition users from traditional passwords to WebAuthn and FIDO2 hardware keys.

Does this authentication system work across multiple services or microservices?

Yes. JWT-based stateless sessions and OAuth 2.1 integration enable SSO across distributed applications. This Skill includes distributed session management, JWT validation patterns, and OAuth provider setup for cross-service authentication without centralized session storage.

What security considerations should I know about JWT tokens and session management?

JWT tokens require secure storage, rotation, and validation; sessions need refresh mechanisms and expiration policies. This Skill addresses secure token generation, refresh token flows, session timeout handling, and FIDO2 hardware key support to prevent common authentication vulnerabilities.

Is WebAuthn support available for hardware security keys like YubiKeys?

Yes. WebAuthn (FIDO2) is a standard for hardware security keys. This Skill implements FIDO2 hardware key support, WebAuthn registration and authentication flows, and passkey management compatible with industry-standard authenticators like YubiKeys.

Related Skills