Skip to main content

Function: getToken()

function getToken(cluster: string): any

Retrieves the authentication token for a given cluster. If a custom getToken method is defined in the Redux store, it will be used. Otherwise, the token is retrieved from local storage.

Parameters

ParameterTypeDescription
clusterstringThe name of the cluster.

Returns

any

The authentication token for the specified cluster, or undefined if not set.

Defined in

src/lib/auth.ts:31