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}');
}

Background

Libraries

just_google_signin

Just a Google SignIn library with an OpenID Connect support.