From b4b311b8a79aa2b9363c0d67c28274ed22a7fd10 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Mon, 7 Nov 2022 19:38:43 +0100 Subject: [PATCH] fix(nc-gui): ref access in auth middleware --- packages/nc-gui/middleware/auth.global.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/middleware/auth.global.ts b/packages/nc-gui/middleware/auth.global.ts index 9f1160f09e..10c3a565cc 100644 --- a/packages/nc-gui/middleware/auth.global.ts +++ b/packages/nc-gui/middleware/auth.global.ts @@ -37,7 +37,7 @@ export default defineNuxtRouteMiddleware(async (to, from) => { const { allRoles } = useRoles() /** if user isn't signed in and google auth is enabled, try to check if sign-in data is present */ - if (!state.signedIn && state.appInfo.value.googleAuthEnabled) await tryGoogleAuth(api, state.signIn) + if (!state.signedIn.value && state.appInfo.value.googleAuthEnabled) await tryGoogleAuth(api, state.signIn) /** if public allow all visitors */ if (to.meta.public) return