Skip to content

Commit bc02ed4

Browse files
authored
Add roles to JWT payload (#93)
* Add `roles` to JWT payload * Bump version to 0.14.0 * Update jwt.interface.ts * Make roles an array * revert version
1 parent 57626fd commit bc02ed4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/node_modules
22
/dist
3+
.idea/

src/interfaces/jwt.interface.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ export interface JWTPayload {
5757
*/
5858
role?: string;
5959

60+
/**
61+
* Roles of the user associated with the JWT
62+
*/
63+
roles?: string[];
64+
6065
/**
6166
* Permissions granted to the user associated with the JWT
6267
*/

0 commit comments

Comments
 (0)