Skip to content

Commit

Permalink
Add name field to JWT
Browse files Browse the repository at this point in the history
  • Loading branch information
anandani4136 authored Jun 14, 2024
1 parent 24f8a2d commit 8f81612
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/services/auth/auth-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export function createGoogleStrategy(device: string) {
export async function getJwtPayloadFromDatabase(userId: string) {
const payload = await Database.ROLES.findOne({ userId: userId }).select([
"userId",
"name",
"roles",
]);
if (!payload) {
Expand Down

0 comments on commit 8f81612

Please sign in to comment.