remove, fix:
- CLAIM_NAME 삭제 - LOGIN_PAGE_URL Default 값 설정
This commit is contained in:
@@ -9,8 +9,8 @@ import { ENDPOINT, AUTH_USER_ID } from "@/shared/config";
|
|||||||
import { getCookie } from "@/shared/lib";
|
import { getCookie } from "@/shared/lib";
|
||||||
import { LoginApi } from "../api/login-service";
|
import { LoginApi } from "../api/login-service";
|
||||||
|
|
||||||
const CLAIM_NAME = process.env.NEXT_PUBLIC_CLAIM_NAME || "Authorization";
|
|
||||||
const LOGIN_PAGE_URL = process.env.NEXT_PUBLIC_DEV_CM_LOGIN_PAGE_URL; // 개발 환경 URL
|
const LOGIN_PAGE_URL = process.env.NEXT_PUBLIC_DEV_CM_LOGIN_PAGE_URL || "http://localhost:3000/auth/login"; // 로그인 페이지 URL
|
||||||
|
|
||||||
const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
|
const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|||||||
Reference in New Issue
Block a user