models.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:pyt 作者: python-security 项目源码 文件源码
def _verify_token(self, token):
        s = Serializer(current_app.config['SECRET_KEY'])
        data = None
        expired, invalid = False, False
        try:
            data = s.loads(token)
        except SignatureExpired:
            expired = True
        except Exception:
            invalid = True
        return expired, invalid, data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号