Function: setToken()
function setToken(cluster: string, token: null | string): void
Sets or updates the token for a given cluster. If a custom setToken method is defined in the Redux store, it will be used. Otherwise, the token is stored in local storage.
Parameters
Parameter | Type | Description |
---|---|---|
cluster | string | The name of the cluster. |
token | null | string | The authentication token to set. |
Returns
void