zod
zod copied to clipboard
add isJWT validation
isJWT() can be useful for validating user tokens sent in querystring parameters in WebSocket connections
Probably best achieved with .regex()
You can use .refine(value => validator.isJWT(value)) where validator comes from https://www.npmjs.com/package/validator
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.