Skip to main content

auth

Index

Functions

FunctionDescription
deleteTokensDeletes all stored authentication tokens from local storage.
getTokenRetrieves the authentication token for a given cluster. If a custom getToken method is defined in the Redux store, it will be used. Otherwise, the token is retrieved from local storage.
getUserInfoRetrieves the user information encoded in the authentication token for a given cluster.
hasTokenChecks whether an authentication token exists for the given cluster.
logoutLogs out the user by deleting all tokens.
setTokenSets or updates the token for a given cluster. If a custom setToken method is defined in the Redux store, it will be used. Otherwise, the token is stored in local storage.