You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting duplicate 401 responses when an access token in invalid, the body is invalid JSON so is causing issues.
After lots of debugging I've tracked the issue down to the access callback function not returning a boolean value and echoing the error message. Added in this commit: 3d94c6e
Changing the access callback to return false and removing the error output solved the issue for me, my understanding is that nothing should be echo'd from the access callback because it can be called multiple times. This solution does however change the response to a 403 error.
I can't think of a solution that would avoid breaking backwards compatibility, apart from possibly adding a hook invoke to the access callback. Any suggestions on how I can go about making this work for my project?
The text was updated successfully, but these errors were encountered:
I'm getting duplicate 401 responses when an access token in invalid, the body is invalid JSON so is causing issues.
After lots of debugging I've tracked the issue down to the access callback function not returning a boolean value and echoing the error message. Added in this commit: 3d94c6e
Changing the access callback to return false and removing the error output solved the issue for me, my understanding is that nothing should be echo'd from the access callback because it can be called multiple times. This solution does however change the response to a 403 error.
I can't think of a solution that would avoid breaking backwards compatibility, apart from possibly adding a hook invoke to the access callback. Any suggestions on how I can go about making this work for my project?
The text was updated successfully, but these errors were encountered: