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
{{ message }}
This repository has been archived by the owner on May 26, 2020. It is now read-only.
@jorisvddonk definitely an edge case, was not expecting a scenario where user_id would be 0. You can submit a pull request with changes that'd fix this for you and a test case along with those changes. Maybe we should be doing if user_id is not None instead.
When trying to make a call to a restricted resource as the user with user_id 0, you get an "Invalid payload" error.
This seems to be caused by the following code in authentication.py:
(
if user_id
evaluates to False if user_id == 0)Not sure if this is by design or not.
The text was updated successfully, but these errors were encountered: