Skip to main content

Function: getUserInfo()

function getUserInfo(cluster: string): any

Retrieves the user information encoded in the authentication token for a given cluster.

Parameters

ParameterTypeDescription
clusterstringThe name of the cluster.

Returns

any

The decoded user information from the token's payload.

Defined in

src/lib/auth.ts:47