def post(self): jti = get_raw_jwt()["jti"] # jti is "JWT ID", a unique ID BLACKLIST.append(jti) return {"message": "Successfuly logged out."}, 200
def post(self): jti = get_raw_jwt()['jti'] BLACKLIST.append(jti) return send_success('Success', {'message': 'successfully logged out.'}, status.HTTP_200_OK)
def post(self): jti = get_raw_jwt()['jti'] BLACKLIST.append(jti) return {"message": "User successfully logged out"}
def post(cls): jti = get_raw_jwt() # jti is JWT ID, a unique identifier for a JWT BLACKLIST.append(jti) return {"message": LOGGED_OUT}