Implement authentication in frontend

This commit is contained in:
2025-10-04 15:54:31 +02:00
parent 884d674765
commit dd0fb6f5ba
3 changed files with 48 additions and 21 deletions

View File

@@ -8,7 +8,7 @@ export const useAuthStore = defineStore('auth', {
returnUrl: null
}),
actions: {
login(user) {
async login(user) {
this.user = user;
localStorage.setItem('user', JSON.stringify(user));
},