Aptos Keyless SDK How can Zod schemas be used to define and validate structured payloads #557
-
Discord user IDNo response Describe your question in detail.How can Zod schemas be used to define and validate structured payloads for ID tokens, including extended properties like user profiles and email information. export const emailScopedPayloadSchema = nonceEncryptedIdTokenSchema.extend({ What error, if any, are you getting?No response What have you tried or looked at? Or how can we reproduce the error?No response Which operating system are you using?Windows Which SDK or tool are you using? (if any)TypeScript SDK Describe your environment or tooling in detailNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
tried this approach The nonceEncryptedIdTokenSchema extends idTokenSchema by adding a nonce field (string).
|
Beta Was this translation helpful? Give feedback.
-
export type EncryptedScopedIdToken = z.infer;
but your object should the method call
|
Beta Was this translation helpful? Give feedback.
tried this approach The nonceEncryptedIdTokenSchema extends idTokenSchema by adding a nonce field (string).