Skip to content

Commit

Permalink
update jwt strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
richard483 committed Jan 20, 2024
1 parent f62ac52 commit 4324564
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "backend-8tech",
"version": "4.1.2",
"version": "4.1.3",
"description": "",
"author": "8tech",
"private": true,
Expand Down
1 change: 1 addition & 0 deletions src/auth/jwt/jwt.strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export class JwtStrategy extends PassportStrategy(Strategy) {
id: payload.user.id,
username: payload.user.username,
roles: payload.user.roles,
companyId: payload.user.companyId,
};
}
}

0 comments on commit 4324564

Please sign in to comment.