Skip to content

Commit

Permalink
saving user_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-Mushnin committed Mar 27, 2024
1 parent a157a3d commit c0810c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/contexts/UserContext/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ export const UserProvider = ({ children }: { children: React.ReactNode }) => {
return setUser(null);
}
setIsLoading(true);
console.log(token);
const headers = { Authorization: `Bearer ${token}` };
http
.get(`${AUTH_URL}/user`, { headers })
.then(
(response) => {
localStorage.setItem("FULLCOUNT_USER_ID", response.data.user_id);
setUser(response.data);
},
(reason) => {
Expand Down

0 comments on commit c0810c8

Please sign in to comment.