Function setUserToken

  • Sets the user token in both local storage and cookies.

    This function stores the provided token in two local storage keys and two cookies, each with a one-year expiration.

    Parameters

    • token: string

      The user token to be stored.

    Returns void