linkedin api 400 错误请求

linkedin api 400 bad request

我正在使用 socialite。并尝试整合 linkedin。当用户允许请求时就可以了。但是,当用户 取消 请求时出现以下错误。

为什么会出现此错误?

看这里的步骤:https://developer.linkedin.com/docs/oauth2

看看Step 3 — Exchange Authorization Code for an Access Token

The final step towards obtaining an Access Token is for your application to ask for one using the Authorization Code it just acquired. This is done by making the following "x-www-form-urlencoded" HTTP POST request.