Function clearTokens

  • Clears various tokens from local storage and cookies.

    This function removes specific tokens related to user authentication and device information from both local storage and cookies. It ensures that all relevant tokens are deleted to effectively log out the user or reset the authentication state.

    Returns void

    // Clear all tokens
    clearTokens();

    The following tokens are removed from local storage:
    - USER_DEVICE_POSTED_VALUE
    - FCM_TOKEN
    - FCM_TOKEN_RANDOM_STRING
    - TOKEN
    - AUTH_TOKEN_LOCAL

    The following tokens are removed from cookies:
    - TOKEN
    - AUTH_TOKEN_LOCAL
    - REQUESTED_WITH