INNER CODE UNIT · Python
logout_refresh_token_endpoint
fescobar/allure-docker-service · allure-docker-api/app.py:638
def logout_refresh_token_endpoint():
if ENABLE_SECURITY_LOGIN is False:
body = {
'meta_data': {
'message' : 'SECURITY is not enabled'
}
}
resp = jsonify(body)
return resp, 404
try:
jti = get_jwt()['jti']
blacklist.add(jti)
resp = jsonify({'meta_data': {'message' : 'Successfully logged out'}})
unset_jwt_cookies(resp)
return resp, 200
except Exception as ex:
body = {
'meta_data': {