Commit 1378b8c3 authored by Guillermo Sanz López's avatar Guillermo Sanz López
Browse files

hardcode

parent 1bd584f4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -9,6 +9,8 @@ const axiosInstance = axios.create({
  baseURL: process.env.NEXT_PUBLIC_API_BASE_URL   // http://10.95.82.71:8085 mi máquina en boe
})

axiosInstance.defaults.headers.common['Authorization'] = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTcwMDc2MDk3MiwianRpIjoiMWZjZTdiZGMtMGU3My00OTgwLTlmNzktMDg5MmZmYjY0NmQwIiwidHlwZSI6ImFjY2VzcyIsInN1YiI6InN1cGVyYWRtaW4iLCJuYmYiOjE3MDA3NjA5NzJ9.A2ogmeWRY5lHPAK0fT-dnv_ru21bTKifLMqmRGX2Dzo'

// REQUEST interceptor for API calls -> if user is logged in, add token to headers of request
axiosInstance.interceptors.request.use(
  req => {