Auth module for Vercube framework
npm install @vercube/auth

!NPM Version&labelColor=%23000&color=%232e2e2e&link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2F%40vercube%2Fauth>)
!GitHub License&labelColor=%23000&color=%232f2f2f>)
!Codecov&labelColor=%23000&color=%232f2f2f>)
Flexible authentication module - protect your endpoints with @Auth(), inject users with @User(), and implement any auth strategy you need (JWT, sessions, API keys, whatever).
- 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
``bash``
pnpm add @vercube/auth
Check out the full documentation