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 wonder if it's a bug. I use redis strategy for bearer access token auth, but strangely it return None when query the user by token, which both token and user id exists.
The user login is succefull.
I checked all my code that it seems all correct .
in redis.py
parsed_id = user_manager.parse_id(user_id)
print(parsed_id) # the parsed_id exists in user table , which is the same value with user_id as UUID stored in user talbe.
return await user_manager.get(parsed_id)
except (exceptions.UserNotExists, exceptions.InvalidID): #exception occured here.
return None
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I wonder if it's a bug. I use redis strategy for bearer access token auth, but strangely it return None when query the user by token, which both token and user id exists.
The user login is succefull.
I checked all my code that it seems all correct .
in redis.py
Beta Was this translation helpful? Give feedback.
All reactions