This commit is contained in:
Fred KISSIE
2025-11-14 01:24:15 +01:00
parent 4beed9d464
commit 955f927c59
4 changed files with 230 additions and 7 deletions

View File

@@ -49,6 +49,8 @@ import { useSupporterStatusContext } from "@app/hooks/useSupporterStatusContext"
import { useTranslations } from "next-intl";
import { build } from "@server/build";
import { useLicenseStatusContext } from "@app/hooks/useLicenseStatusContext";
import { useSubscriptionStatusContext } from "@app/hooks/useSubscriptionStatusContext";
import { usePaidStatus } from "@app/hooks/usePaidStatus";
const pinSchema = z.object({
pin: z
@@ -99,6 +101,19 @@ type ResourceAuthPortalProps = {
} | null;
};
/**
* TODO: remove
- Auth page domain => only in SaaS
- Branding => saas & enterprise for a paid user ?
- ...
- resource auth page: `/auth/resource/[guid]` || (auth page domain/...)
- org auth page: `/auth/org/[orgId]`
=> only in SaaS
=> branding org title/subtitle only in SaaS
=> unauthenticated
*/
export default function ResourceAuthPortal(props: ResourceAuthPortalProps) {
const router = useRouter();
const t = useTranslations();