-
-
Notifications
You must be signed in to change notification settings - Fork 2
Home
github-actions[bot] edited this page Aug 26, 2026
·
5 revisions
nestjs-firebase-auth is a comprehensive library for integrating Firebase Authentication into your NestJS applications. It simplifies the process of verifying Firebase ID tokens, managing user roles, and protecting your routes with easy-to-use decorators.
- Easy Integration: Seamlessly integrates with NestJS using a dynamic module.
- Role-Based Access Control (RBAC): Protect routes based on user roles (e.g., ADMIN, USER).
- Policy-Based Authorization (ABAC): Enforce contextual rules, like resource ownership, with your own policy handlers. See Authorization-Policies.
- Claim-Based Authorization (Fine-Grained): Require every one of a set of fine-grained claims, distinct from roles. See Authorization-Claims.
- Complex Examples: Worked examples combining roles, claims, and policies on the same route. See Complex Examples.
- Custom Claims: Easily manage and verify custom claims on Firebase users.
-
Decorators: Clean and expressive decorators like
@Auth,@Roles,@Policies, and@FirebaseUser. - Flexible Configuration: Supports both synchronous and asynchronous configuration.
GitHub Repository | Issues | Releases
If you find this project useful, you can support it by buying me a coffee ☕️. If you can't contribute financially, a ⭐ on the repo is also greatly appreciated!
MIT License © 2024 Tomás Alegre