cleanup serviceUrl, host, basepath configurable

This commit is contained in:
Max Peintner
2025-01-29 10:34:33 +01:00
parent e8900501b9
commit 04f9b47960
43 changed files with 426 additions and 597 deletions

View File

@@ -19,22 +19,17 @@ export default async function Page(props: {
const { loginName, organization, authRequestId, checkAfter } = searchParams;
const _headers = await headers();
const instanceUrl = getApiUrlOfHeaders(_headers);
const host = instanceUrl;
if (!host || typeof host !== "string") {
throw new Error("No host found");
}
const serviceUrl = getApiUrlOfHeaders(_headers);
const sessionFactors = await loadMostRecentSession({
host,
serviceUrl,
sessionParams: {
loginName,
organization,
},
});
const branding = await getBrandingSettings({ host, organization });
const branding = await getBrandingSettings({ serviceUrl, organization });
return (
<DynamicTheme branding={branding}>