This is a handler for the Google OAuth2 JWT id tokens received when a client authenticates with Google's OAuth2 servers.
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;
Add this to your package's pubspec.yaml file:
dependencies: google_oauth2_jwt: ^0.0.1+1
You can install packages from the command line:
$ pub get
Alternatively, your editor might support
Check the docs for your editor to learn more.
Now in your Dart code, you can use: