New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
withStatus(401) in __invoke call #110
Comments
The |
Yeah I checked that out, but am stuck on older PHP version for now.
Any chance a similar fix could be ported to the older 2.X version.
|
Hmmh. Good point about PHP versions. I need to think a bit if changing this behavior is a BC break. I think it should be ok. |
changes I propose....this works for me. I would do a pull request...but ...maybe tomorrow.
|
PR made #111 |
Merged e6de664. Released as 2.4.0. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when token cannot be found or decoded or false is returned on callback the response code is forced to be 401 after calling the error function.
this gives the app no chance to redirect etc.
Be nice if withStatus(401) is called before the error function, giving it the option to override it
The text was updated successfully, but these errors were encountered: