A Google SignIn library for Dart with an OpenID Connect support.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
CHANGELOG.md
LICENSE
README.md
pubspec.yaml

README.md

Just Google SignIn

A simple Google SignIn library for Dart with support for an OpenID Connect.

Usage

import 'dart:async';
import 'package:just_google_signin/just_google_signin.dart';

main() async {
  var params = new InitParams('<CLIENT_ID>', scope: 'email');
  var auth = await init(params);
  
  if (!auth.isSignedIn) {
    // Show a Google SignIn form.
    await auth.signIn();
  }
  
  var user = auth.user;
  print('User name: ${user.profile.name}');
  print('JWT token: ${user.tokens.idToken}');
}

Decode Google JWT

You can decode a Google JWT (a.k.a. idToken) with just_google_jwt_decoder library.

Background