mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: remove console logs
This commit is contained in:
parent
2683501f82
commit
62bba02561
3 changed files with 0 additions and 4 deletions
|
|
@ -22,7 +22,6 @@ const AuthProvider = ({ children }: any) => {
|
|||
const [auth, setAuth] = React.useState<Auth>({ access_token: "", isAuthenticated: false, userInfo: {}, isLoading: true });
|
||||
|
||||
function deleteCookie(cookieName: string) {
|
||||
console.log("Deleting cookie: " + cookieName);
|
||||
document.cookie = cookieName + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
||||
}
|
||||
|
||||
|
|
@ -70,7 +69,6 @@ const AuthProvider = ({ children }: any) => {
|
|||
useEffect(() => {
|
||||
checkRefreshToken();
|
||||
checkAuth();
|
||||
console.log("pathname", pathname);
|
||||
return () => {
|
||||
auth.isLoading = false;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue