whenever logging out, check for error response 401. if found, delete the entire cookie and log the user out.
whenever logging out, check for error response 401. if found, delete the entire cookie and log the user out.