Skip to content

Commit

Permalink
Updated auth header hook to run whenever auth changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-brinkman committed Dec 10, 2024
1 parent 591e519 commit 73c319e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/api/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const APIProvider = (props: PropsWithChildren<{}>): ReactElement => {
} else {
delete axios.defaults.headers['Authorization'];
}
}, [auth.isAuthenticated]);
}, [auth.isAuthenticated, auth.user, auth]);

return (
<APIContext.Provider
Expand Down

0 comments on commit 73c319e

Please sign in to comment.