Function: hasToken()
function hasToken(cluster: string): boolean
Checks whether an authentication token exists for the given cluster.
Important! This will only work if plugins have overriden getToken function! By default tokens are stored in httpOnly cookies and not available from JS
Parameters
Parameter | Type | Description |
---|---|---|
cluster | string | The name of the cluster. |
Returns
boolean
True if a token exists, false otherwise.