loginWithGoogle static method

Future<Map<String, dynamic>> loginWithGoogle({
  1. String? idToken,
  2. String? code,
  3. String? callbackPath,
})

Google OAuth - returns user data without saving

Implementation

static Future<Map<String, dynamic>> loginWithGoogle({
  String? idToken,
  String? code,
  String? callbackPath,
}) async {
  return GoogleProvider.authenticate(
    idToken: idToken,
    code: code,
    callbackPath: callbackPath,
    clientId: config.googleClientId,
    clientSecret: config.googleClientSecret,
    redirectBase: config.redirectBase,
  );
}