Checks if the user is logged in by verifying the presence of a token in either local storage or cookies.
True if the user is logged in, otherwise false.
Checks if the user is logged in by verifying the presence of a token in either local storage or cookies.