我的 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)