Skip to main content

subject_from_access_token

Function subject_from_access_token 

Source
pub fn subject_from_access_token(token: &str) -> Result<Subject>
Expand description

Decode the sub claim from an exchanged at+jwt and build a Subject.

No signature verification (see the module authority note). Returns an error if the token is not a decodable JWT or has no sub.