fix(auth): corrected to remove localstorage
This commit is contained in:
@@ -5,6 +5,12 @@ import { useEffect } from "react";
|
|||||||
const fetchSession = async () => {
|
const fetchSession = async () => {
|
||||||
const token = localStorage.getItem("auth_token");
|
const token = localStorage.getItem("auth_token");
|
||||||
|
|
||||||
|
//temp
|
||||||
|
localStorage.removeItem("ally-supports-cache");
|
||||||
|
localStorage.removeItem("auth-storage");
|
||||||
|
localStorage.removeItem("nextauth.message");
|
||||||
|
localStorage.removeItem("prod");
|
||||||
|
|
||||||
if (!token) {
|
if (!token) {
|
||||||
throw new Error("No token found");
|
throw new Error("No token found");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user