From 0790066f7186a2cf3777d2704f140da27ac20af3 Mon Sep 17 00:00:00 2001 From: Ronit Anandani <56076011+anandani4136@users.noreply.github.com> Date: Thu, 13 Jun 2024 19:26:39 -0500 Subject: [PATCH] Update auth-models.ts with name field --- src/services/auth/auth-models.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/services/auth/auth-models.ts b/src/services/auth/auth-models.ts index 07cfb61..9ee25f6 100644 --- a/src/services/auth/auth-models.ts +++ b/src/services/auth/auth-models.ts @@ -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(), });