| Crates.io | jsonwebtoken-google |
| lib.rs | jsonwebtoken-google |
| version | 0.1.6 |
| created_at | 2021-03-02 09:18:17.813212+00 |
| updated_at | 2022-02-27 02:30:45.123212+00 |
| description | parse and validate google jwt token with jsonwebtoken |
| homepage | |
| repository | https://github.com/cheetah-games/jsonwebtoken-google |
| max_upload_size | |
| id | 362559 |
| size | 32,700 |
#[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();
}