Skip to content

Commit

Permalink
🐛 Fix(auth): tmp rm authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
Parkerhiphop committed Jul 30, 2023
1 parent 1036508 commit e7b54d0
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 e7b54d0

Please sign in to comment.