Update client-service.ts
This commit is contained in:
@@ -57,7 +57,9 @@ export async function fetchClient<T>(
|
||||
};
|
||||
|
||||
if (authToken) {
|
||||
// Backend expects "Bearer TOKEN" format
|
||||
requestHeaders['Authorization'] = `Bearer ${authToken}`;
|
||||
console.log('Authorization header set to:', `Bearer ${authToken.substring(0, 10)}...`);
|
||||
}
|
||||
|
||||
console.log('API Request:', {
|
||||
|
||||
Reference in New Issue
Block a user