Skip to main content

Function: registerSetTokenFunction()

function registerSetTokenFunction(override: (cluster: string, token: null | string) => void): void

Override headlamp setToken method

Parameters

ParameterTypeDescription
override(cluster: string, token: null | string) => voidThe setToken override method to use.

Returns

void

Example

registerSetTokenFunction((cluster: string, token: string | null) => {
// set token logic here
});

Defined in

src/plugin/registry.tsx:589