Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用方法 jwt.decode(auth_token, app.config['SECRET_KEY'], 'utf-8') 在本地机器上它可以完美运行,但在云服务器上它会引发jwt.InvalidTokenError. 而且不是每次,而是在几次请求之后,有时是在一个请求之后。同时,我总是提交相同的令牌。云服务器与 Flask - gunicorn - nginx 配合使用。请至少帮我在哪里挖,我整个头都碎了,我不明白为什么会这样。
jwt.decode(auth_token, app.config['SECRET_KEY'], 'utf-8')
jwt.InvalidTokenError