Fixed Authentication Persistence
This commit is contained in:
@@ -51,7 +51,6 @@ if (typeof window !== 'undefined') {
|
|||||||
localStorage.removeItem('pocketbase_auth');
|
localStorage.removeItem('pocketbase_auth');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Subscribe to authStore changes to persist authentication
|
// Subscribe to authStore changes to persist authentication
|
||||||
pb.authStore.onChange(() => {
|
pb.authStore.onChange(() => {
|
||||||
if (pb.authStore.isValid) {
|
if (pb.authStore.isValid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user