我在应用程序中使用Flask-JWT时遇到了问题,我使用的身份验证和标识如下所示: def authenticate(username, password): if user and bcrypt.check_password_hash(user.password, password): user_id = payload['identit
我正在学习简单的python JWT模块。我正在使用restfull api创建一个令牌,然后使用相同的令牌来获取数据,但不幸的是,我得到了一个错误"User i not exist“。Python代码片段 class User: self.id = _idusername_mapping.get(username, None)
if user an