demos.py 文件源码

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

项目:logistics-wizard-controller 作者: IBM-Cloud 项目源码 文件源码
def deauthenticate(token):
    """
    Logout the current user
    :param token  Current web token
    :return:
    """
    request_token = web_utils.get_token_from_request()
    # Only allow deletion of a web token if the token belongs to the current user
    if request_token == token:
        user_service.logout(token=g.auth['loopback_token'])
    return '', 204
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号