auth

Implement user authentication and authorization with better-auth and Drizzle ORM.

3|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/mattwoodco/skills --skill auth-mattwoodco
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth
Source: https://github.com/mattwoodco/skills/tree/main/skills/auth
Command: npx skills add https://github.com/mattwoodco/skills --skill auth-mattwoodco

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill establishes a robust authentication system, handling user sign-up, sign-in, session management, and access control, ensuring secure access to your application.

Core Features & Use Cases

  • Multi-factor Authentication: Supports email/password and social logins (Google, GitHub).
  • Role-Based Access Control: Implement granular permissions for different user roles.
  • Account Management: Users can manage their profiles, security settings, and delete their accounts.
  • Use Case: When a new user signs up, the system automatically verifies their email and logs them in, providing a seamless onboarding experience.

Quick Start

Set up authentication with email/password and Google OAuth.

Frequently Asked Questions about auth

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

FAQPage Schema
How do I implement user authentication and OAuth in a Next.js application?

You can implement user authentication and OAuth in Next.js using better-auth, which supports email/password and social logins like Google and GitHub. It manages user sessions and integrates with Drizzle ORM for database persistence.

What is the best way to set up role-based access control with Drizzle ORM?

Role-based access control with Drizzle ORM is handled by configuring user roles and permissions within the authentication system. This approach manages granular access levels and session states directly through the database schema.

Does this authentication system support social login providers like Google and GitHub?

Yes, the authentication system supports social login providers like Google and GitHub. It requires setting up environment variables for OAuth credentials to enable these social logins alongside standard email/password authentication.

How do I manage user account lifecycle and sessions in Next.js?

User account lifecycle and sessions in Next.js are managed through better-auth, which handles sign-up, sign-in, profile updates, security settings, and account deletion. It automatically verifies emails and logs users in upon sign-up.

What environment variables do I need to configure for OAuth and authentication?

You need to configure environment variables for application secrets and specific OAuth credentials for providers like Google and GitHub. These variables are required to securely establish the authentication system and manage social logins.