Skip to content

Beautiful Open-Source Form Builder

283 B
Raw Blame
/**
 * Lightweight authentication check that does not pull the full login and 2FA
 * flow into public routes.
 */
export const useIsAuthenticated = () => {
  const authStore = useAuthStore()
  const isAuthenticated = computed(() => !!authStore.token)

  return { isAuthenticated }
}