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 a5285de commit 4663826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/apiBackend.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ apiBackend.interceptors.request.use((config) => {
const oidcAuthState = localStorage.getItem('oidcAuth')
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 4663826

Please sign in to comment.