mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 02:33:01 +00:00
logout/login from anywhere
This commit is contained in:
@@ -69,7 +69,7 @@ export default function LogInForm() {
|
||||
const data = await res.json();
|
||||
localStorage.setItem("token", data.token);
|
||||
localStorage.setItem("user", data.user);
|
||||
window.location.href = "/";
|
||||
window.location.href = "";
|
||||
}
|
||||
// unauthorized
|
||||
else if (res.status === 401) {
|
||||
|
||||
Reference in New Issue
Block a user