Skip to content

Commit

Permalink
fix: 웹뷰일 때 로그인 체크 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
alstn2468 committed Dec 15, 2024
1 parent 3da2663 commit b0ad3bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/admin/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import ShowReservationPage from './pages/ShowReservationPage';
import ShowSettlementPage from './pages/ShowSettlementPage';
import ShowEnterancePage from './pages/ShowEnterancePage';
import { initVConsole } from './utils/vConsole';
import { checkIsWebView } from '@boolti/bridge';

setDefaultOptions({ locale: ko });

Expand Down Expand Up @@ -100,7 +101,7 @@ const publicRoutes = [
const PrivateRoute = () => {
const { isLogin } = useAuthAtom();

if (!isLogin()) {
if (!isLogin() && !checkIsWebView()) {
return <Navigate to={PATH.LOGIN} replace />;
}

Expand Down

0 comments on commit b0ad3bf

Please sign in to comment.