Fixed Authentication Persistence

This commit is contained in:
Tola Leng
2025-06-08 22:44:17 +08:00
parent f6592d331f
commit 895da83999
-1
View File
@@ -51,7 +51,6 @@ if (typeof window !== 'undefined') {
localStorage.removeItem('pocketbase_auth');
}
}
// Subscribe to authStore changes to persist authentication
pb.authStore.onChange(() => {
if (pb.authStore.isValid) {