debug(marketplace): add console.log to authService
This commit is contained in:
parent
77c93346e5
commit
c0903f06ab
1 changed files with 6 additions and 1 deletions
|
|
@ -12,7 +12,12 @@ export interface AuthLoginPayload {
|
|||
|
||||
export const authService = {
|
||||
login: async (payload: AuthLoginPayload) => {
|
||||
const { data } = await apiClient.post<AuthResponse>('/v1/auth/login', payload)
|
||||
console.log('🔐 [authService] Making request to /v1/auth/login with:', payload)
|
||||
const response = await apiClient.post<AuthResponse>('/v1/auth/login', payload)
|
||||
console.log('🔐 [authService] Full axios response:', response)
|
||||
console.log('🔐 [authService] response.data:', response.data)
|
||||
console.log('🔐 [authService] response.data.token:', response.data?.token)
|
||||
const { data } = response
|
||||
return { token: data.token, expiresAt: data.expires_at }
|
||||
},
|
||||
logout: async () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue