!!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> |
||
|---|---|---|
| .. | ||
| .vscode | ||
| public | ||
| src | ||
| .gitignore | ||
| README.md | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| vite.config.js | ||
README.md
Vue 3 + Vite
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.
Learn more about IDE Support for Vue in the Vue Docs Scaling up Guide.