diff --git a/lattice/src/App.tsx b/lattice/src/App.tsx
index 8481007b9..64454ebd5 100644
--- a/lattice/src/App.tsx
+++ b/lattice/src/App.tsx
@@ -16,7 +16,7 @@ const App = () => {
) : (
- {auth.authOn ? (
+ {auth.isAuthOn ? (
(undefined);
const [isAuthenticated, setIsAuthenticated] = useState(false);
const [isLoading, setIsLoading] = useState(true);
- const [authOn, setAuthOn] = useState(true);
+ const [isAuthOn, setIsAuthOn] = useState(true);
const userinfo = () => {
pilosa.get.userinfo().then((userinfoRes) => {
@@ -58,10 +58,10 @@ function useProvideAuth() {
.then((res) => {
if (res.status === 204) {
// Authentication is off
- setAuthOn(false);
+ setIsAuthOn(false);
} else {
// Turn on Authentication
- setAuthOn(true);
+ setIsAuthOn(true);
if (res.data === "OK") {
// User is authenticated
@@ -83,8 +83,8 @@ function useProvideAuth() {
return {
isAuthenticated,
isLoading,
+ isAuthOn,
user,
- authOn,
userinfo,
signin,
signout,