Skip to content

Commit

Permalink
fix: tg login
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenArcher committed Nov 9, 2024
1 parent eb5255c commit 80e7c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Root/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function App(props: PropsWithChildren) {
throw new Error(`telegram login failed: ${res.data.message}`);
}
const data = res.data.data;
localStorage.setItem("access_token", data.access_token);
localStorage.setItem("token", data.access_token);
localStorage.setItem("refresh_token", data.refresh_token);
})
.catch((err) => {
Expand Down

0 comments on commit 80e7c84

Please sign in to comment.