vhm24-auth-rbac

Implement Telegram-based authentication and role-based access control for VendHub.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/jamsmac/VHM24 --skill vhm24-auth-rbac
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vhm24-auth-rbac
Source: https://github.com/jamsmac/VHM24/tree/main/skills/vhm24-auth-rbac
Command: npx skills add https://github.com/jamsmac/VHM24 --skill vhm24-auth-rbac

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides secure user authentication and robust role-based access control for VendHub, enabling reliable user identity verification and permissions enforcement.

Core Features & Use Cases

  • Telegram-based authentication and multi-role support
  • RBAC with role-to-permission mappings and fine-grained permissions
  • Protection of routes and UI components via hooks and gates (useAuth, usePermission, ProtectedRoute)

Quick Start

Start integrating authentication and authorization concepts into your VendHub application to secure access, roles, and permissions.

Frequently Asked Questions about vhm24-auth-rbac

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

FAQPage Schema
How do I implement role-based access control with Telegram authentication in tRPC?

You can implement Telegram-based authentication and role-based access control by mapping multiple user roles to fine-grained permissions, enforced through frontend hooks and server-side tRPC middleware.

What is the best way to protect UI routes using RBAC permission hooks?

Protecting UI routes with RBAC involves using frontend hooks like useAuth and usePermission to gate components, ensuring only users with the correct role mappings can access specific features.

Can I enforce fine-grained permissions for multiple roles like admin and technician on the server side?

Yes, you can enforce fine-grained permissions by mapping specific roles such as admin, manager, technician, and operator to access controls within server-side tRPC procedures.

Does this access control approach support frontend UI gates alongside tRPC middleware?

Yes, this access control approach supports both frontend UI gates using hooks like usePermission and server-side tRPC middleware to comprehensively secure routes and application features.

How do I secure user login flows for multiple roles in a VendHub application?

To secure user login for multiple roles, apply Telegram-based authentication and map each role to specific permissions, protecting both UI components and server-side procedures.