jsonwebtoken-google

Crates.iojsonwebtoken-google
lib.rsjsonwebtoken-google
version0.1.6
sourcesrc
created_at2021-03-02 09:18:17.813212
updated_at2022-02-27 02:30:45.123212
descriptionparse and validate google jwt token with jsonwebtoken
homepage
repositoryhttps://github.com/cheetah-games/jsonwebtoken-google
max_upload_size
id362559
size32,700
Kviring Alexey (avkviring)

documentation

https://docs.rs/jsonwebtoken-google

README

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();
}
Commit count: 19

cargo fmt