Logo
Explore Help
Sign In
phundrak/timmal
1
0
Fork 0
You've already forked timmal
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
fe2bc5fc87a4169b6ebe60013f766baefa38cf6d
timmal/app/plugins/auth.client.ts

7 lines
143 B
TypeScript
Raw Normal View History

fix(auth): resolve reactivity bug and improve error handling - Fix Vue reactivity bug in isAuthenticated computed property by reordering condition to ensure dependency tracking (!!user.value before pb.authStore.isValid) - Fix cross-tab sync onChange listener to handle logout by using nullish coalescing for undefined model - Add user-friendly error message mapping in login catch block - Export initAuth method from useAuth composable - Add auth.client.ts plugin for client-side auth initialization - Remove debug console.log statements that masked the Heisenbug - Simplify auth.client plugin tests to structural checks due to Nuxt's test environment auto-importing defineNuxtPlugin - Update test expectations for new error message behaviour
2026-01-28 16:18:20 +01:00
import { useAuth } from '../composables/useAuth';
export default defineNuxtPlugin(() => {
const { initAuth } = useAuth();
initAuth();
});
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 40ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API