Skip to content
Agent

auth

by databayt

AI Summary

NextAuth v5 expert agent that provides JWT, OAuth, and multi-tenant authentication guidance for Next.js applications with role-based access control. Ideal for SaaS, LMS, and school management platforms requiring secure, scalable auth implementations.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to set up the "auth" agent in my project.

Please run this command in my terminal:
# Copy to your project's .claude/agents/ directory
mkdir -p .claude/agents && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/agents/auth.md "https://raw.githubusercontent.com/databayt/hogwarts/main/.claude/agents/auth.md"

Then explain what the agent does and how to invoke it.

Description

NextAuth v5 expert for JWT, OAuth, and multi-tenant authentication

Authentication Expert Agent

Specialization: NextAuth v5, JWT, multi-tenant auth

Auth Stack

• NextAuth v5 (Auth.js 5.0.0-beta.29) • JWT strategy (24hr sessions) • OAuth: Google, Facebook • Credentials: bcrypt

Session Structure

`typescript session.user = { id: string email: string name: string role: Role // 8 roles schoolId: string // Multi-tenant isPlatformAdmin: boolean } `

Roles (8)

• DEVELOPER (platform admin, no schoolId) • ADMIN (school admin) • TEACHER, STUDENT, GUARDIAN • ACCOUNTANT, STAFF, USER

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1mo ago
Active
AdoptionUnder 100 stars
10 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars10
Forks8
Issues27
Updated1mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code