auth-skill

Build secure authentication flows with password hashing, JWTs, OAuth, and MFA.

1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/leenBaksh/Hackathon-II-Phase --skill auth-skill-leenbaksh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-skill
Source: https://github.com/leenBaksh/Hackathon-II-Phase/tree/main/phase-II-Task-todo/.claude/skills/auth-skill
Command: npx skills add https://github.com/leenBaksh/Hackathon-II-Phase --skill auth-skill-leenbaksh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implementing secure authentication across apps is error-prone and time-consuming; this Skill provides a robust blueprint for signup, signin, password hashing, token management, and integration with security best practices.

Core Features & Use Cases

  • Secure signup and signin with password hashing and salt, JWT generation, and access control on protected routes.
  • OAuth provider integration and social login options (Google, GitHub, etc.) with session management.
  • Multi-factor authentication, token refresh, and secure cookie handling for production-grade security.
  • Use cases include building a secure API for a web or mobile app with role-based access control and auditable login events.

Quick Start

Create a secure authentication flow that signs up a new user, issues a JWT, and protects a secret endpoint.

Frequently Asked Questions about auth-skill

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

FAQPage Schema
How do I implement secure JWT authentication with password hashing for a REST API?

Secure JWT authentication requires hashing passwords with salt before storage and issuing signed tokens upon login. This approach validates users, manages token expiration, and enforces access control on protected REST or GraphQL routes.

What's the best way to add OAuth social login to an existing web application?

OAuth social login integrates external providers like Google or GitHub to authenticate users without handling their passwords directly. This method manages provider tokens, establishes secure sessions, and maps external identities to your application's user records.

How does multi-factor authentication work with token refresh flows?

Multi-factor authentication requires users to provide additional verification alongside passwords before JWTs are issued. Token refresh flows then securely issue new access tokens using secure cookies, maintaining authenticated sessions without repeated MFA prompts.

Can I use this authentication approach for both REST and GraphQL APIs?

Yes, this authentication approach applies to both REST and GraphQL APIs. It validates users, issues JWTs, and enforces role-based access control across either protocol, ensuring consistent signup, signin, and session management security.

Do I need rate limiting and input validation for secure user signup flows?

Yes, rate limiting and input validation are critical for secure user signup flows. Rate limiting prevents brute-force attacks on signin endpoints, while input validation sanitizes incoming data to protect against injection vulnerabilities during password hashing and user creation.

Why should I use salt when hashing passwords for user authentication?

Using salt when hashing passwords ensures that identical passwords produce different hash values, preventing rainbow table attacks. Secure authentication flows generate unique salts per user before hashing, safeguarding stored credentials even if the database is compromised.