fix(guard): Supplementary `IGNORE_PATH_LIST`

This commit is contained in:
haitaoo 2023-04-25 13:16:37 +08:00 committed by LinkinStars
parent aaeca560e5
commit 031954520c
3 changed files with 0 additions and 3 deletions

View File

@ -11,7 +11,6 @@ const Index: FC = () => {
const navigate = useNavigate();
useEffect(() => {
const token = searchParams.get('access_token');
alert(`landing: ${token}`);
guard.handleLoginWithToken(token, navigate);
}, []);
usePageTags({

View File

@ -33,7 +33,6 @@ const routes: RouteNode[] = [
guard: () => {
const gr = guard.shouldLoginRequired();
if (!gr.ok) {
alert(`LoginRequired: ${window.location.pathname}`);
return gr;
}
return guard.notForbidden();

View File

@ -341,7 +341,6 @@ export const handleLoginWithToken = (
getLoggedUserInfo().then((res) => {
loggedUserInfoStore.getState().update(res);
const userStat = deriveLoginState();
alert(`userStat: ${JSON.stringify(userStat)}`);
if (userStat.isNotActivated) {
floppyNavigation.navigate(RouteAlias.inactive, {
handler,