Function diana::validate_and_decode_jwt [−][src]
pub fn validate_and_decode_jwt(
jwt: &str,
secret: &JWTSecret<'_>
) -> Option<Claims>
Expand description
Validates a JWT and returns the payload. All client JWTs are automatically validated and their payloads are sent (parsed) to your resolvers, but if you have a system on top of that you’ll want to use this function (not required for normal Diana usage though).