feat (auth): implement global authentication middleware

This commit is contained in:
Abizrh
2025-08-10 16:47:07 +07:00
parent 0515f8628f
commit 66db96b9b6
11 changed files with 80 additions and 36 deletions
+16
View File
@@ -0,0 +1,16 @@
// app/types/index.d.ts
import type { Pinia } from 'pinia'
declare module '#app' {
interface NuxtApp {
$pinia: Pinia
}
}
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$pinia: Pinia
}
}
export {}