laravel-sign-in-with-apple icon indicating copy to clipboard operation
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"}

Open WilliamBlais opened this issue 4 years ago • 5 comments

I'm having an issue with the callback. I have double checked clientID, teamID and accountId.

Somebody else has this problem?

WilliamBlais avatar Jun 25 '20 05:06 WilliamBlais

Fixed: Make sure to never call Socialite::driver($provider)->user() twice, or Socialite::driver($provider)->user() AND Socialiter::driver($provider)->login().

WilliamBlais avatar Jun 25 '20 06:06 WilliamBlais

@WilliamBlais Thanks for noting this. I will add this to the documentation.

mikebronner avatar Jun 25 '20 13:06 mikebronner

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 avatar Aug 21 '20 22:08 mikebronner

@mikebronner have you find any solution for this

rohail-office avatar Aug 11 '21 09:08 rohail-office