Skip to content

Commit 07c9b5a

Browse files
committed
Add roles field to AccessTokenPayloadSchema
1 parent 088fa70 commit 07c9b5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/src/types/Token.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const AccessTokenResponseSchema = createResponseSchema(AccessOnlySchema);
1919
export const AccessTokenPayloadSchema = z.object({
2020
sub: z.string(),
2121
email: z.string().email(),
22+
roles: z.string().array(),
2223
iat: z.number(),
2324
exp: z.number(),
2425
});

0 commit comments

Comments
 (0)