Skip to content

Commit

Permalink
Frontend authorization fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KiraLT committed Sep 14, 2021
1 parent 9000c2e commit d6ae785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/common/hoc/bearer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function withBearer<T>(
setBearerRequired(false)
})
.catch(async (err) => {
if (err instanceof Response && err.status === 401) {
if (String(err).toLowerCase().includes('authorization header required')) {
setBearerRequired(true)
} else {
setError(String(err))
Expand Down

0 comments on commit d6ae785

Please sign in to comment.