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