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.
The user token to be stored.
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.