小编Moj*_*ari的帖子

Laravel 6 护照在错误凭证上返回 400 错误请求

我的 Vue 后端使用 Laravel 6 护照授权密码

当我向oauth/token发送正确的凭据时,它会工作并返回令牌,但是当我发送错误的(电子邮件/密码)时,它会返回 400 而不是 401 与此消息。

    {
    "error": "invalid_grant",
    "error_description": "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.",
    "hint": "",
    "message": "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used …
Run Code Online (Sandbox Code Playgroud)

oauth-2.0 laravel laravel-passport laravel-6

14
推荐指数
1
解决办法
1万
查看次数

标签 统计

laravel ×1

laravel-6 ×1

laravel-passport ×1

oauth-2.0 ×1