#[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();
}
-
Notifications
You must be signed in to change notification settings - Fork 8
Validate JWT token with Google public key
License
avkviring/jsonwebtoken-google
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Validate JWT token with Google public key
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published