forked from baron/baron-sso
로그인 콜백-가드 흐름 및 API 인증 처리 안정화
This commit is contained in:
@@ -4,7 +4,7 @@ import { Navigate, Outlet } from "react-router-dom";
|
||||
export default function AuthGuard() {
|
||||
const auth = useAuth();
|
||||
|
||||
if (auth.isLoading) {
|
||||
if (auth.isLoading || auth.activeNavigator) {
|
||||
return <div>Loading...</div>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user