You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to use: Socialite::driver('apple')->stateless()->user()
inside the callback function, I encounter an error: invalid_client.
The root cause is in the method: $response = $this->getAccessTokenResponse($this->getCode());
This method makes a Guzzle POST request to the /auth/token endpoint without including the required header 'Content-Type: application/x-www-form-urlencoded'. However, this header is required for the endpoint to process the request correctly.
The text was updated successfully, but these errors were encountered:
@xcode-it , my initial assumption was incorrect. In my case, the issue was related to the use of the firebase/php-jwt package, which was generating an invalid JWT token. After switching to the lcobucci/jwt package, the problem was resolved.
When I try to use:
Socialite::driver('apple')->stateless()->user()
inside the callback function, I encounter an error: invalid_client.
The root cause is in the method:
$response = $this->getAccessTokenResponse($this->getCode());
This method makes a Guzzle POST request to the /auth/token endpoint without including the required header 'Content-Type: application/x-www-form-urlencoded'. However, this header is required for the endpoint to process the request correctly.
The text was updated successfully, but these errors were encountered: