authentication-setup

Implement JWT-based authentication with bcrypt hashing and refresh tokens in FastAPI.

Updated Nov 2, 2025
One-click install
npx skills add https://github.com/PrasadTelasula/EvokeQOne --skill authentication-setup-prasadtelasula
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: authentication-setup
Source: https://github.com/PrasadTelasula/EvokeQOne/tree/main/.claude/skills/authentication-setup
Command: npx skills add https://github.com/PrasadTelasula/EvokeQOne --skill authentication-setup-prasadtelasula

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implements secure authentication using JWT tokens and bcrypt password hashing, including refresh tokens, account lockout, and password reset flows.

Core Features & Use Cases

  • Password hashing with bcrypt and validation
  • JWT tokens for access and refresh
  • Password reset flow via secure tokens
  • Account lockout after failed attempts to prevent brute-force

Quick Start

Integrate the authentication flow into your FastAPI backend by wiring login and refresh endpoints and enabling password reset.

Frequently Asked Questions about authentication-setup

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

FAQPage Schema
How do I implement JWT authentication with refresh tokens in FastAPI?

JWT authentication in FastAPI uses access and refresh tokens for secure user sessions. Create endpoints that issue tokens on login, validate them on protected routes, and refresh expired access tokens using the refresh token. This Skill provides the complete implementation including token generation, validation, and session management.

What's the best way to hash passwords securely in FastAPI applications?

Bcrypt is the recommended password hashing library for FastAPI. It applies salted hashing to store passwords irreversibly and provides verification during login. This Skill implements bcrypt hashing with strength validation to ensure passwords meet security requirements before storage.

How do I prevent brute-force attacks on login endpoints?

Account lockout policies block further login attempts after a threshold of failures, preventing brute-force credential guessing. This Skill enforces automatic lockout mechanisms that require time-based or manual account resets, protecting against repeated unauthorized access attempts.

Can I implement password reset flows securely in FastAPI?

Password reset flows use secure, time-limited tokens sent via email to verify user identity before allowing password changes. This Skill provides the complete password reset implementation, including token generation, validation, and secure password update endpoints.

Does JWT authentication work with admin authorization in FastAPI?

JWT tokens can encode user roles and permissions, enabling role-based access control for admin operations. This Skill secures admin endpoints by decoding tokens and validating user authorization before executing privileged actions like user management.

What's the difference between access and refresh tokens?

Access tokens are short-lived credentials used for API requests, while refresh tokens are long-lived credentials used only to obtain new access tokens. This approach limits exposure if an access token is compromised. This Skill implements both token types with appropriate expiration and validation.