Update deps

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-06-27 16:35:21 +02:00
parent 1e75b009bd
commit 8d1898e003
4 changed files with 235 additions and 291 deletions

View File

@@ -4,7 +4,7 @@ import { AUTH_ACCESS_TOKEN } from "@/constants";
import { LoginErrorCode } from "@/types/enums";
export const authGuardIfNeeded: NavigationGuard = async (to, from, next) => {
if (to.meta.requiredAuth !== true) return next();
if (to.meta?.requiredAuth !== true) return next();
// We can't use "currentUser" from apollo here
// because we may not have loaded the user from the local storage yet