google_oauth2_jwt 0.0.1+1

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 =;

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  google_oauth2_jwt: ^0.0.1+1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:google_oauth2_jwt/jwt.dart';
Awaiting analysis to complete.