Skip to content

Commit

Permalink
Update auth-models.ts with name field
Browse files Browse the repository at this point in the history
  • Loading branch information
anandani4136 authored Jun 14, 2024
1 parent 8f81612 commit 0790066
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/services/auth/auth-models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ export const Role = z.enum(["USER", "STAFF", "ADMIN", "CORPORATE"]);

export const JwtPayloadValidator = z.object({
userId: z.string(),
name: z.string(),
roles: Role.array(),
});

0 comments on commit 0790066

Please sign in to comment.