validate
Sets a validation function for JWTCredential.
Return a principal of type P when authentication succeeds, or null when the verified JWT should not be accepted.
Parameters
body
validation function called after the token is verified.
Sets a validation function for JWTCredential.
Return a principal of type P when authentication succeeds, or null when the verified JWT should not be accepted.
validation function called after the token is verified.