googleSignInUp method

Future<Response> googleSignInUp({
  1. required String serverAuthCode,
  2. required String callbackURL,
})

Implementation

Future<Response> googleSignInUp({
  required String serverAuthCode,
  required String callbackURL,
}) async {
  Response response = await api.post(
    '/auth/signinup',
    options: Options(
      headers: {
        'rid': 'thirdpartyemailpassword',
        'Content-Type': 'application/json; charset=UTF-8',
      },
    ),
    data: {
      "thirdPartyId": ThirdPartyLoginProviders.google.name,
      "code": serverAuthCode,
      "redirectURI": callbackURL,
    },
  );

  return response;
}