📌  相关文章
📜  将过期时间添加到 jwt 扩展令牌 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:14.105000             🧑  作者: Mango

代码示例1
@jwt_required
def create_dev_token():
    username = get_jwt_identity()
    expires = datetime.timedelta(days=365)
    token = create_access_token(username, expires_delta=expires)
    return jsonify({'token': token}), 201