Initial commit

This commit is contained in:
2026-04-17 23:26:01 +00:00
commit 2ea4ca5d52
409 changed files with 63459 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
/**
* Middleware to refresh the authenticated user if possible
* Executed on all route changes
*/
export default defineNuxtRouteMiddleware(async () => {
if (!useUser().isAuthenticated || useUser().user === null) {
// Attempt to refresh the auth store
await useUser().authRefresh()
}
})