@vercube/auth
v0.0.43
Published
Auth module for Vercube framework
Readme
@vercube/auth
Authentication for Vercube apps
Flexible authentication module - protect your endpoints with @Auth(), inject users with @User(), and implement any auth strategy you need (JWT, sessions, API keys, whatever).
✨ Features
- Provider-based - implement your own auth logic by extending
AuthProvider - Simple decorators -
@Auth()protects routes,@User()gives you the current user - Role-based access -
@Auth({ roles: ['admin'] })restricts by role - Type-safe - full TypeScript support with generic user types
📦 Installation
pnpm add @vercube/auth📖 Usage
Check out the full documentation
