Existing documentation URL(s)
What changes are you suggesting?
The validateJWT function only checks the expiry of the token. The comment warning(s) are not sufficient for users who would be unaware of the potential danger of validating in this way. This should be clarified with a explicit warning that this is unsafe code, and/or offer a reference for a safe implementation of JWT validation.
Additional information
No response
Existing documentation URL(s)
What changes are you suggesting?
The
validateJWTfunction only checks the expiry of the token. The comment warning(s) are not sufficient for users who would be unaware of the potential danger of validating in this way. This should be clarified with a explicit warning that this is unsafe code, and/or offer a reference for a safe implementation of JWT validation.Additional information
No response