Function: getUserInfo()
function getUserInfo(cluster: string): any
Retrieves the user information encoded in the authentication token for a 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
any
The decoded user information from the token's payload.