You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -207,6 +207,16 @@ export class AppController {
207
207
}
208
208
}
209
209
```
210
+
211
+
#### Difference Between `@FirebaseUser` and `@FirebaseUserClaims`
212
+
213
+
> **Note:** Starting from version `>=1.7.x`, these two decorators are explicitly separated to avoid confusion (see [issue #11](https://github.com/Alpha018/nestjs-firebase-auth/issues/11)):
214
+
215
+
-`@FirebaseUser()` → Returns the **full decoded token** (`auth.DecodedIdToken`).
216
+
-`@FirebaseUserClaims()` → Returns only the **custom claims** (roles/permissions) defined for the user.
217
+
218
+
This separation ensures that developers can access both the raw Firebase user object and the role/claims information independently.
219
+
210
220
## Resources
211
221
212
222
Check out a few resources that may come in handy when working with NestJS:
0 commit comments