• Checks if the user is logged in by verifying the presence of a token in either local storage or cookies.

    Returns boolean

    True if the user is logged in, otherwise false.