def post(cls): jti = get_jwt()['jti'] user_id = get_jwt_identity() BLOCKLIST.add(jti) return { 'message': gettext('user_logged_out').format(id=user_id), }, 200
def post(self): jti = get_jwt()['jti'] BLOCKLIST.add(jti) return {'message': 'Successfully log out.'}, 200
def post(self): jti = get_raw_jwt()[ 'jti'] # jti is JWT ID, a unique identifier for a JWT BLOCKLIST.add(jti) return {'message': 'Successfully logged out.'}, 200
def post(self): jwt_id = get_jwt()['jti'] # JWT Token Identifier BLOCKLIST.add(jwt_id) return {'msg': 'Desconectado com sucesso!'}, 200
def post(self): jti = get_raw_jwt()[ 'jti'] # jti is "JWT ID", a unique identifier for a JWT BLOCKLIST.add(jti) return {'message': 'Logged out'}
def post(cls): # jti is "JWT ID", a unique identifier for a JWT. jti = get_jwt()["jti"] user_id = get_jwt_identity() BLOCKLIST.add(jti) return {"message": USER_LOGGED_OUT.format(user_id)}, 200
def post(self): jti = get_raw_jwt()['jti'] # jti is "JWT ID", unique id for a JWT BLOCKLIST.add(jti) return {'message': 'Succseffully logged out.'}, 200
def post(cls): jti = get_jwt()[ "jti"] # jti is "JWT ID", a unique identifier for a JWT. user_id = get_jwt_identity() BLOCKLIST.add(jti) return {"message": gettext("user_logged_out").format(user_id)}, 200