google_oauth2_jwt 0.0.2 google_oauth2_jwt: ^0.0.2 copied to clipboard
Google OAuth2 JWT id token parser
google-oauth2-jwt #
Introduction #
This is a handler for the Google OAuth2 JWT id tokens received when a client authenticates with Google's OAuth2 servers.
Usage #
To decode the contents of the id_token
field in an authorization result
JsonWebToken<GoogleClaimSet> jwt = decodeGoogleIdToken(idToken);
All claims can then be accessed through jwt.claimSet
String email = jwt.claimSet.email;