Skip to main content

auth

Index

Functions

FunctionDescription
deleteTokensDeletes all stored authentication tokens
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 clearing the authentication token for the specified cluster.
setTokenSets or updates the token for a given cluster using cookie-based storage. The token is stored securely in an HttpOnly cookie on the backend.