Skip to content

Commit b07a197

Browse files
committed
chore: migrate to zod v4
see https://zod.dev/v4/changelog
1 parent 20a240c commit b07a197

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/jwt.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ export const audSchema = z
2020
export const payloadSchema = z.object({
2121
type: z.literal("app"),
2222
aud: audSchema,
23-
email: z.string().email().optional(),
23+
email: z.email().optional(),
2424
exp: epochSchema,
2525
iat: epochSchema,
2626
nbf: epochSchema.optional(),
27-
iss: z.string().url(),
27+
iss: z.url(),
2828
identity_nonce: z.string().optional(),
2929
common_name: z.string().optional(),
3030
sub: z.string(),

0 commit comments

Comments
 (0)