auth
Index
Functions
Function | Description |
---|---|
deleteTokens | Deletes all stored authentication tokens from local storage. |
getToken | Retrieves 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. |
getUserInfo | Retrieves the user information encoded in the authentication token for a given cluster. |
hasToken | Checks whether an authentication token exists for the given cluster. |
logout | Logs out the user by deleting all tokens. |
setToken | Sets 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. |