wip coop/[id] page
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user