Skip to main content

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

ParameterTypeDescription
clusterstringThe name of the cluster.

Returns

any

The decoded user information from the token's payload.

Defined in

src/lib/auth.ts:52