signInOnline method

  1. @override
Future<GoogleSignInCredentials?> signInOnline()
override

Use this to sign in using the online method, by retrieving new token from the api.

Implementation

@override
Future<GoogleSignInCredentials?> signInOnline() async {
  final app = _initializeRouter();
  await _startServer(app);
  _launchUrl();

  final creds = await _waitForClient();
  if (creds != null) return creds;

  await _closeServer();

  return null;
}