epic-1-auth

Authenticate users with JWT tokens and role-based permissions.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/wangzeping114/shareflow --skill epic-1-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: epic-1-auth
Source: https://github.com/wangzeping114/shareflow/tree/main/.claude/skills/epic-1-auth
Command: npx skills add https://github.com/wangzeping114/shareflow --skill epic-1-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unsecured user authentication and account systems complicate access control; need JWT-based tokens and role permissions to manage users safely and efficiently.

Core Features & Use Cases

  • JWT-based authentication with access and refresh tokens.
  • Role-based access control and backend role provisioning.
  • End-to-end account lifecycle: create, activate, disable, and provision client accounts.

Quick Start

Create an admin account and test login, token refresh, and logout flows.

Frequently Asked Questions about epic-1-auth

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

FAQPage Schema
How do I implement JWT-based authentication with role-based access control in my backend?

JWT-based authentication and role-based access control are implemented by generating access tokens, hashing passwords, storing refresh tokens, and enforcing permission checks across user creation and login endpoints. This approach secures account lifecycles end-to-end.

What is the best way to manage user account provisioning and lifecycle with JWT tokens?

User account provisioning with JWT tokens involves generating tokens during creation, validating credentials at login, refreshing expired access tokens, and disabling accounts to manage the full lifecycle securely. Admin endpoints handle role provisioning and permission validation.

How does token refresh storage work when securing backend user authentication?

Token refresh storage works by issuing a long-lived refresh token alongside a short-lived access token. The backend securely stores the refresh token and validates it to issue new access tokens without requiring users to re-enter passwords.

Can I use role-based permissions for admin endpoints and frontend authorization flows?

Yes, role-based permissions support both backend admin endpoints and frontend authorization flows. Permission checks validate user roles before granting access to administrative capabilities, ensuring proper validation across the application stack.

Do I need password hashing to securely authenticate users with JWT?

Yes, password hashing is required to securely authenticate users with JWT. The backend hashes passwords before storage and validates the hash during login, ensuring credentials are never exposed in plaintext during token generation.