Fix jwt-token

This commit is contained in:
2025-08-19 03:48:11 +02:00
parent c042eed0e9
commit b7bef2b2bb
2 changed files with 15 additions and 4 deletions

View File

@@ -33,6 +33,9 @@ api.interceptors.request.use(
const token = localStorage.getItem('token');
if (token) {
config.headers.Authorization = `Bearer ${token}`;
console.log('🔑 API Request: Token added to', config.url, 'Token length:', token.length);
} else {
console.warn('⚠️ API Request: No token found for', config.url);
}
return config;
},