use Antarctica\LaravelBaseExceptions\Exception\HttpException;
class AuthenticationException extends HttpException {
protected $statusCode = 401;
protected $kind = 'authentication_failure';
protected $details = [
"authentication_error" => [
"Ensure your credentials are correct and that your user account is still active, or contact the maintainer of this API for assistance."
]
];
}
json
{
"errors": [
{
"details": {
"authentication_error": [
"Ensure your credentials are correct and that your user account is still active, or contact the maintainer of this API for assistance."
]
},
"exception": "Antarctica\\LaravelTokenAuth\\Exception\\Auth\\AuthenticationException",
"file": "/app/vendor/antarctica/laravel-token-auth/src/Antarctica/LaravelTokenAuth/Service/Token/TokenServiceJwtAuth.php",
"kind": "authentication_failure",
"line": 88,
"stack_trace": [
{
"file": "/app/vendor/antarctica/laravel-token-auth/src/Antarctica/LaravelTokenAuth/Service/TokenUser/TokenUserService.php",
"line": 91,
"function": "authOnce",
"class": "Antarctica\\LaravelTokenAuth\\Service\\Token\\TokenServiceJwtAuth",
"type": "->",
"args": [
{
"username": "xxx",
"password": "xxx"
}
]
},
...
{
"file": "/app/public/index.php",
"line": 49,
"function": "run",
"class": "Illuminate\\Foundation\\Application",
"type": "->",
"args": []
}
]
}
]
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.