Skip to content

Commit

Permalink
fix: loadUser
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham-Lal committed Nov 18, 2023
1 parent 4654a3e commit ad9a929
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions api/controllers/authController.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,7 @@ exports.loadUser = async (req, res) => {
catch (error) {
res.status(500).json({
success: false,
msg: "Something went wrong... Try again later!",
error
msg: "Something went wrong... Try again later!"
});
}
}
Expand Down
3 changes: 0 additions & 3 deletions client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
<meta charset="UTF-8" />
<meta name="description"
content="GDSC Bengal Institute of Technology is a community of developers who are passionate about Google technologies and open source." />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<link rel="icon" type="image/png" href="/gdsc_logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Google fonts -->
Expand Down
4 changes: 2 additions & 2 deletions client/src/store/useAuthStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@ export const useLoginStore = create(() => ({
}

if (result.success === false) {
// localStorage.removeItem("login_token");
localStorage.removeItem("login_token");
useAuthStore.getState().setVerifyLoading(false);
useAuthStore.getState().setVerifySuccess(false);
}
})
}
catch (error) {
// localStorage.removeItem("login_token");
localStorage.removeItem("login_token");
useAuthStore.getState().setVerifyLoading(false);
useAuthStore.getState().setVerifySuccess(false);
}
Expand Down

0 comments on commit ad9a929

Please sign in to comment.