google_oauth2_jwt 0.0.2

  • README.md
  • Installing
  • Versions
  • --

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;

Use this package as a library

1. Depend on it

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


dependencies:
  google_oauth2_jwt: ^0.0.2

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';
  
Version Uploaded Documentation Archive
0.4.1 Sep 17, 2016 Go to the documentation of google_oauth2_jwt 0.4.1 Download google_oauth2_jwt 0.4.1 archive
0.4.0 Sep 17, 2016 Go to the documentation of google_oauth2_jwt 0.4.0 Download google_oauth2_jwt 0.4.0 archive
0.2.1 Jun 21, 2015 Go to the documentation of google_oauth2_jwt 0.2.1 Download google_oauth2_jwt 0.2.1 archive
0.1.0 Sep 15, 2014 Go to the documentation of google_oauth2_jwt 0.1.0 Download google_oauth2_jwt 0.1.0 archive
0.0.2 Sep 15, 2014 Go to the documentation of google_oauth2_jwt 0.0.2 Download google_oauth2_jwt 0.0.2 archive
0.0.1+1 Sep 14, 2014 Go to the documentation of google_oauth2_jwt 0.0.1+1 Download google_oauth2_jwt 0.0.1+1 archive
Awaiting analysis to complete.