Skip to content
Discussion options

You must be logged in to vote

tried this approach The nonceEncryptedIdTokenSchema extends idTokenSchema by adding a nonce field (string).

export type IDToken = z.infer<typeof idTokenSchema>;

export type NonceEncryptedIdToken = z.infer<typeof nonceEncryptedIdTokenSchema>;

export type ProfileScopedPayloadSchema = z.infer<
  typeof profileScopedPayloadSchema
>;

export type EmailScopedPayloadSchema = z.infer<typeof emailScopedPayloadSchema>;

export type EncryptedScopedIdToken = z.infer<typeof scopedPayloadSchema>;
Import { z } from "zod";

export const idTokenSchema = z.object({
  aud: z.string(),
  exp: z.number(),
  iat: z.number(),
  iss: z.string(),
  sub: z.string(),
});

export const nonceEncryptedIdTokenSchema…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@BigOTF
Comment options

Answer selected by BigOTF
Comment options

You must be logged in to vote
1 reply
@BigOTF
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants