def post(self): """user signout""" try: user = get_jwt_identity() add_token_to_set(get_raw_jwt()) app.logger.debug("user token signout: {}".format(user)) return make_response({'ok': True, 'users': user, 'Message': 'logged out'}, 200) except Exception as e: app.logger.error('ERROR:Sign-out:unknown issue:user:{}'.format(get_jwt_identity())) app.logger.error(e) raise BadRequest(e)
def post(self): """user signout""" try: user = get_jwt_identity() add_token_to_set(get_raw_jwt()) app.logger.debug("user token signout: {}".format(user)) return m_response({'user': user, 'msg': 'logged out'}, 200) except Exception as e: app.logger.error('ERROR:Sign-out:unknown issue:user:{}'.format( get_jwt_identity())) app.logger.error(e) return err_response(e, 500)