wip coop/[id] page

This commit is contained in:
María
2025-08-18 14:45:18 +02:00
parent f33da4af80
commit 8fedf54470
7 changed files with 1374 additions and 296 deletions

View File

@@ -29,6 +29,7 @@ export const useAuthStore = defineStore('auth', {
method: 'POST',
body: { email, password }
})
console.log('Login payload:', payload)
this.setPayload(payload)
},
@@ -41,7 +42,11 @@ export const useAuthStore = defineStore('auth', {
Authorization: `Bearer ${this.access}`
}
})
this.setUserData(data)
try {
this.setUserData(data)
} catch (error) {
console.error('Error setting user data:', error)
}
},
async refresh() {