테넌트 목록 조회 cursor기반으로 재구성. 사용자 metadata 미사용 필드 제거

This commit is contained in:
lectom committed 2026-05-13 18:05:51 +09:00
1 parent a4d707d4d8
commit 5e7b7b878c
85 files changed
+4808 -734

No files matched your search

+24
View File
@@ -11,6 +11,13 @@ export type CommonOidcConfigOptions<TUserStore = unknown> = {
userStore: TUserStore;
};
export type LoginRedirectGuardParams = {
pathname: string;
isRedirecting: boolean;
loginPath?: string;
callbackPath?: string;
};
type CommonOidcRuntimeConfig<TUserStore> = {
authority: string;
client_id: string;
@@ -61,3 +68,20 @@ export function buildCommonUserManagerSettings<
redirect_uri: config.redirect_uri || "",
};
}
export function shouldStartLoginRedirect({
pathname,
isRedirecting,
loginPath = "/login",
callbackPath = DEFAULT_OIDC_REDIRECT_PATH,
}: LoginRedirectGuardParams) {
if (isRedirecting) {
return false;
}
if (pathname === loginPath || pathname.startsWith(callbackPath)) {
return false;
}
return true;
}