appleSignInUp method

Future<Response> appleSignInUp({
  1. required String authorizationCode,
  2. required String callbackURL,
  3. required String clientId,
})

Implementation

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

  return response;
}