!!state.user alone only reflects whether a user record was ever persisted (login), not whether that session's token is still valid - pb.authStore keeps the record around across a token's own expiry with nothing clearing it automatically. Root cause of a reported "my documents disappeared and uploads fail with 'The requested resource wasn't found'" symptom: the full authenticated shell kept rendering while every PocketBase call silently ran as unauthenticated. Now checks pb.authStore.isValid (decodes the token's own exp claim) too. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| assets | ||
| components | ||
| composables | ||
| repositories | ||
| router | ||
| services | ||
| stores | ||
| views | ||
| App.vue | ||
| main.js | ||