7 releases
0.1.6 | Feb 27, 2022 |
---|---|
0.1.5 | Feb 27, 2022 |
0.1.3 | Jan 26, 2022 |
0.1.2 | Nov 4, 2021 |
0.1.1 | Mar 5, 2021 |
#1970 in Cryptography
848 downloads per month
18KB
372 lines
Parse and validate Google JWT tokens
#[derive(Debug, Serialize, Deserialize)]
pub struct TokenClaims {
pub email: String,
pub aud: String,
pub iss: String,
pub exp: u64,
}
async fn main() {
let parser = Parser::new("some-google-web-client-id");
let claims = parser.parse::<TokenClaims>("some-token").await.unwrap();
}
Dependencies
~18–35MB
~669K SLoC