Skip to content

Commit

Permalink
fix: correcting Authorization Method in headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehdi-BOUYAHIA committed Jun 15, 2023
1 parent f2997bc commit a5285de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/apiFhir.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ apiFhir.interceptors.request.use((config) => {
console.log('oidcAuthState', oidcAuthState)
const token = localStorage.getItem(ACCESS_TOKEN)
config.headers.Authorization = `Bearer ${token}`
config.headers['authorizationMehtod'] = oidcAuthState === true ? 'OIDC' : 'JWT'
config.headers.authorizationMethod = oidcAuthState === true ? 'OIDC' : 'JWT'
return config
})

Expand Down

0 comments on commit a5285de

Please sign in to comment.