One-click install
npx skills add https://github.com/Awais68/h2_phase_3_Chatbot_Todo --skill auth-integration
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: auth-integration
Source: https://github.com/Awais68/h2_phase_3_Chatbot_Todo/tree/main/.claude/skills/auth-integration
Command: npx skills add https://github.com/Awais68/h2_phase_3_Chatbot_Todo --skill auth-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides expert guidance for implementing robust authentication flows, including login/signup, session management, protected routes, and role-based access control in modern web apps.

Core Features & Use Cases

  • Provider-first setup: configure email/password and social providers (e.g., Google) with secure, verifiable sign-in.
  • Session management & middleware: centralized session handling, server-side protection via middleware, and client-side state synchronization.
  • Role-based access control: server- and client-side guards ensuring appropriate permissions across ERP-like systems.

Quick Start

Use this Skill to set up Better Auth v5 with Next.js App Router for a secure login flow, protected routes, and role-based access control.

Frequently Asked Questions about auth-integration

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

FAQPage Schema
How do I implement authentication in a Next.js app using Better Auth?▼

To implement authentication in Next.js, this Skill guides you through integrating Better Auth to configure email/password and Google providers, secure login/signup flows, and manage sessions across server and client components.

What is the best way to set up role-based access control in Next.js?▼

Setting up role-based access control involves applying server-side and client-side guards to verify user permissions, ensuring appropriate access across protected routes in ERP-like systems within your Next.js application.

Does this auth integration support Google provider setup with Prisma?▼

Yes, this auth integration supports Google provider setup alongside Email/Password, utilizing Prisma integration for database management and environment-based secrets for secure, verifiable sign-in flows.

How do I protect routes and manage sessions with Next.js middleware?▼

Protecting routes with Next.js middleware requires centralized session handling to validate access server-side, while synchronizing client-side state to maintain secure user sessions throughout the application.

Can I use NextAuth instead of Better Auth for session management?▼

Yes, the Skill provides expert guidance for integrating either Better Auth or NextAuth to handle robust session management, login flows, and protected routes in modern Next.js web applications.