Skip to content

Commit

Permalink
fixed the local storage error
Browse files Browse the repository at this point in the history
  • Loading branch information
kanhaiya04 committed Feb 18, 2024
1 parent dd9a1d3 commit 8c61efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const authLink = setContext((_, { headers }) => {
return {
headers: {
...headers,
authorization: 'Bearer ' + localStorage.getItem('token') || '',
authorization: 'Bearer ' + getItem('token') || '',
},
};
});
Expand Down

0 comments on commit 8c61efc

Please sign in to comment.