diff --git a/src/auth/auth.composable.js b/src/auth/auth.composable.js index 5451790..0f4c08f 100644 --- a/src/auth/auth.composable.js +++ b/src/auth/auth.composable.js @@ -51,7 +51,7 @@ export function useAuth() { router.push("/access-denied"); return; } - callback(); + callback?.(); } /** Fetch JWT, store it and use it for API client. */