login with api
This commit is contained in:
parent
d8a9909eb9
commit
ff5b189b2f
16 changed files with 1241 additions and 66 deletions
8
frontend_management/plugins/auth.ts
Normal file
8
frontend_management/plugins/auth.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export default defineNuxtPlugin(() => {
|
||||
const authStore = useAuthStore();
|
||||
|
||||
// Restore auth state from localStorage before any navigation
|
||||
if (process.client) {
|
||||
authStore.checkAuth();
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue