laravel-sign-in-with-apple
laravel-sign-in-with-apple copied to clipboard
Client error: `POST https://appleid.apple.com/auth/token` resulted in a `400 Bad Request` response: {"error":"invalid_grant"}
I'm having an issue with the callback. I have double checked clientID, teamID and accountId.
Somebody else has this problem?
Fixed: Make sure to never call Socialite::driver($provider)->user() twice, or Socialite::driver($provider)->user() AND Socialiter::driver($provider)->login().
@WilliamBlais Thanks for noting this. I will add this to the documentation.
Follow-up: this also happens during testing or refreshing the login page before completing the initial registration all the way through. The following requests do not include the user's name.
@mikebronner have you find any solution for this