yweb-auth

Manage authentication, authorization, and permissions for YWeb applications.

3|2|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/yafo-ai/yweb-core --skill yweb-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: yweb-auth
Source: https://github.com/yafo-ai/yweb-core/tree/main/.cursor/skills/yweb-auth
Command: npx skills add https://github.com/yafo-ai/yweb-core --skill yweb-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive framework for implementing secure authentication, authorization, and permission management in YWeb applications, streamlining user access control and data security.

Core Features & Use Cases

  • Dual Token Authentication: Manages short-lived Access Tokens and long-lived Refresh Tokens for secure user sessions.
  • RBAC Implementation: Supports Role-Based Access Control with hierarchical role inheritance.
  • Organization Management: Integrates features for managing organizational structures within the application.
  • Caching Strategies: Optimizes performance by caching user data and intelligently invalidating caches on relevant data changes.
  • Use Case: Secure a new API endpoint by ensuring only authenticated users with specific roles can access it, while also managing user sessions effectively.

Quick Start

Implement JWT authentication for your YWeb application by following the guidelines in the YWeb authentication module.

Frequently Asked Questions about yweb-auth

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

FAQPage Schema
How do I implement JWT authentication and manage user sessions in a YWeb application?

JWT authentication in a YWeb application is implemented using a dual-token mechanism that manages short-lived Access Tokens and long-lived Refresh Tokens to maintain secure and efficient user sessions.

What is the best way to set up Role-Based Access Control (RBAC) with hierarchical role inheritance?

RBAC with hierarchical role inheritance is established by defining organizational structures and mapping user roles to specific permissions, ensuring validated access control across the application hierarchy.

How does permission validation and caching work for authenticated API endpoints?

Permission validation caches user data to optimize access control performance and intelligently invalidates the cache when relevant user roles or organizational data changes occur.

Can I manage organizational hierarchy and user roles within my YWeb app's authorization system?

Yes, the authorization system integrates organizational management features, allowing you to map user roles and permissions directly to your application's organizational hierarchy structure.

When should I use a dual-token mechanism instead of a single token for user login?

A dual-token mechanism should be used to balance security and user experience, issuing short-lived Access Tokens for API requests and long-lived Refresh Tokens to maintain sessions without repeated logins.