@@ -16,11 +16,8 @@ import { LogoutEscapeHatch } from "@/app/components/logoutEscapeHatch";
1616import { redirect } from "next/navigation" ;
1717import { BetweenHorizontalStart , GitBranchIcon , LockIcon } from "lucide-react" ;
1818import { hasEntitlement } from "@sourcebot/shared" ;
19- import { getAnonymousAccessStatus } from "@/actions" ;
2019import { env } from "@/env.mjs" ;
2120import { GcpIapAuth } from "@/app/[domain]/components/gcpIapAuth" ;
22- import { headers } from "next/headers" ;
23- import { getBaseUrl , createInviteLink , isServiceError } from "@/lib/utils" ;
2421
2522interface OnboardingProps {
2623 searchParams ?: { step ?: string } ;
@@ -50,16 +47,6 @@ export default async function Onboarding({ searchParams }: OnboardingProps) {
5047 return < div > Error loading organization</ div > ;
5148 }
5249
53- // Get anonymous access status
54- const anonymousAccessEntitlement = hasEntitlement ( "anonymous-access" ) ;
55- const anonymousAccessStatus = await getAnonymousAccessStatus ( SINGLE_TENANT_ORG_DOMAIN ) ;
56- const anonymousAccessEnabled = anonymousAccessEntitlement && ! isServiceError ( anonymousAccessStatus ) && anonymousAccessStatus ;
57-
58- // Get the current URL to construct the full invite link
59- const headersList = headers ( ) ;
60- const baseUrl = getBaseUrl ( headersList ) ;
61- const inviteLink = createInviteLink ( baseUrl , org . inviteLinkId ) ;
62-
6350 if ( org && org . isOnboarded ) {
6451 redirect ( '/' ) ;
6552 }
@@ -161,7 +148,7 @@ export default async function Onboarding({ searchParams }: OnboardingProps) {
161148 title : "Configure Access Settings" ,
162149 subtitle : (
163150 < >
164- Set up your organization' s access settings.{ " " }
151+ Set up your organization' s access settings.{ " " }
165152 < a
166153 href = "https://docs.sourcebot.dev/docs/configuration/auth/access-settings"
167154 target = "_blank"
0 commit comments