Apple Oauth in expo web

Recently I am trying to implement apple oauth in expo web version, I created the service id and other related info, i have issue @PostMapping("/callback") public ResponseEntity<Void> handleAppleCallback(@RequestParam Map<String, String> body) { String code = body.get("code"); String idToken = body.get("id_token");

    if (code == null) {
        return ResponseEntity.badRequest().build();
    }

    // Redirect to your Expo Web app with the code in query
    String frontendUrl = "https://mobile-dot-dev-epicportal.uc.r.appspot.com/apple-callback?code=" + code;
    return ResponseEntity.status(HttpStatus.FOUND)
            .header("Location", frontendUrl)
            .build();
}

when i pass the code recived from apple to this route i am getting invalid_grant i am not sure what is wrong here

Answered by DTS Engineer in 891650022

Hi @EpicEstates,

Please read the following forums post and included technote to learn more about troubleshooting these authorization response errors:

Gathering required information for troubleshooting Sign in with Apple authorization and token requests

https://developer.apple.com/forums/thread/801173

If you are unable to resolve the issue, please submit a report via Feedback assistant (following the guidance in the post above). Once submitted, please reply with the Feedback ID.

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Hi @EpicEstates,

Please read the following forums post and included technote to learn more about troubleshooting these authorization response errors:

Gathering required information for troubleshooting Sign in with Apple authorization and token requests

https://developer.apple.com/forums/thread/801173

If you are unable to resolve the issue, please submit a report via Feedback assistant (following the guidance in the post above). Once submitted, please reply with the Feedback ID.

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Apple Oauth in expo web
 
 
Q