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 |
#1943 in Cryptography
2,160 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
~17–37MB
~679K SLoC