Skip to content

Commit

Permalink
Merge pull request #258 from Game-as-a-Service/hotfix/authentication
Browse files Browse the repository at this point in the history
🐛 fix(auth): tmp rm authentication
  • Loading branch information
Parkerhiphop authored Jul 30, 2023
2 parents 1036508 + e7b54d0 commit 465dc79
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions containers/util/Startup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ const Startup: FC<Props> = ({ children, isAnonymous }) => {
async function fetch() {
const jwt = getTokenInCookie();
if (jwt) {
const res = await authentication(jwt);
if (res.token) {
setToken(res.token);
}
setToken(jwt);
// The `authentication` is needed when the token is expired
// TODO: Put it back after clarify the refresh workflow
// const res = await authentication(jwt);
// if (res.token) {
// setToken(res.token);
// }
} else {
setToken(null);
}
Expand Down

0 comments on commit 465dc79

Please sign in to comment.