linkGoogle method

  1. @override
Future<void> linkGoogle({
  1. required Session session,
  2. required String token,
  3. Map<String, String>? vars,
})
override

Linking Google authentication

Implementation

@override
Future<void> linkGoogle({
  required model.Session session,
  required String token,
  Map<String, String>? vars,
}) async {
  final res = await _api.v2AccountLinkGooglePost(
    body: ApiAccountGoogle(
      token: token,
      vars: vars,
    ),
  );

  if (!res.isSuccessful) throw Exception('Linking failed.');
}