auth-integration
Implement Secure Next.js Authentication
Authentication work is easy to under-specify and hard to secure. This skill guides Claude, Codex, and Claude Code through forms, sessions, protected routes, and role checks.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "auth-integration" from https://skillstore.io/skills/awais68-auth-integration.md and its manifest at https://skillstore.io/api/skills/awais68-auth-integration/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "auth-integration". Add authentication to a new dashboard app.
Expected outcome:
- A file plan for auth routes, forms, session store, middleware, and guards.
- A checklist for environment variables, email verification, secure cookies, and session expiration.
- Implementation notes for Better Auth, Prisma, and Google OAuth setup.
Using "auth-integration". Create role checks for an education dashboard.
Expected outcome:
- A role model for admin, teacher, student, and parent users.
- Permission groups for common actions such as managing users and viewing class data.
- Guidance for enforcing checks in middleware, server actions, and UI guards.
Using "auth-integration". Review my login flow for missing security controls.
Expected outcome:
- A review list covering CSRF, secure cookies, rate limits, email verification, and audit logs.
- Concrete remediation steps for weak password rules or missing server-side authorization.
- Testing suggestions for login failures, logout cleanup, and protected route redirects.
Security Audit
SafeThe static findings are false positives caused by Markdown code fences, TypeScript template literals, documentation links, and environment variable examples. No prompt injection, malicious command execution, filesystem access, credential exfiltration, or unsafe network behavior was found in SKILL.md.
Risk Factors
โ๏ธ External commands (36)
๐ Network access (7)
๐ Filesystem access (4)
๐ Env variables (5)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/awais68-auth-integration/audits/8?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/awais68-auth-integration?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/awais68-auth-integration?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/awais68-auth-integration/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/awais68-auth-integration.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
Awais68. (2026). auth-integration security audit report (audit version 8) [Author version unspecified]. Skillstore. https://skillstore.io/skills/awais68-auth-integration/audits/8BibTeX citation
@techreport{awais68-awais68-auth-integration-2026,
author = {Awais68},
title = {auth-integration security audit report (audit version 8)},
institution = {Skillstore},
year = {2026},
number = {8},
url = {https://skillstore.io/skills/awais68-auth-integration/audits/8},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "auth-integration security audit report (audit version 8)"
version: "unspecified"
type: report
authors:
- name: "Awais68"
date-released: "2026-07-06"
url: "https://skillstore.io/skills/awais68-auth-integration/audits/8"
identifiers:
- type: other
value: "skillstore:awais68-auth-integration:audit:8"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: HighWhat You Can Build
Add Auth To A New App
Create a full authentication baseline with provider setup, form validation, session state, and route protection.
Standardize Access Control
Define roles, permissions, middleware checks, and reusable guards for teams building dashboards or ERP workflows.
Review Auth Security Requirements
Check an implementation against practical controls for cookies, rate limits, email verification, and audit logging.
Try These Prompts
Use the auth-integration skill to add Better Auth with email and Google login to my Next.js App Router project. Include required files, environment variables, and setup steps.
Use the auth-integration skill to build login, signup, and forgot password pages. Use React Hook Form, Zod validation, loading states, and accessible error messages.
Use the auth-integration skill to protect my dashboard routes. Add middleware checks, a client auth guard, session hydration, and redirects for unauthenticated users.
Use the auth-integration skill to design role-based access control for admin, teacher, student, and parent users. Include server-side checks, permission helpers, audit logging, and test cases.
Best Practices
- Keep secrets in environment variables and use placeholders in shared examples.
- Enforce authorization on the server, even when client guards improve user experience.
- Add rate limiting, audit logging, secure cookies, and email verification before production release.
Avoid
- Do not rely only on client-side redirects to protect sensitive routes.
- Do not hardcode OAuth secrets, database URLs, or auth secrets in source files.
- Do not skip rate limiting for login, signup, or password reset endpoints.