Skip to content

Commit eed2d7f

Browse files
committed
Remove (and permanently enable) the PromptNoneAuthFlow flag
1 parent 86b5116 commit eed2d7f

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

functional-tests/fixtures/baseTest.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export const defaultLocalForcedFeatureFlags: FeatureFlagName[] = [
1212
"CancellationFlow",
1313
"AutomaticRemovalCsatSurvey",
1414
"AdditionalRemovalStatuses",
15-
"PromptNoneAuthFlow",
1615
"DataBrokerRemovalTimeEstimateLabel",
1716
"LandingPageRedesign",
1817
"CirrusV2",

src/app/(proper_react)/layout.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { ReactAriaI18nProvider } from "../../contextProviders/react-aria";
1515
import { CountryCodeProvider } from "../../contextProviders/country-code";
1616
import { getCountryCode } from "../functions/server/getCountryCode";
1717
import { PageLoadEvent } from "../components/client/PageLoadEvent";
18-
import { getEnabledFeatureFlags } from "../../db/tables/featureFlags";
1918
import { PromptNoneAuth } from "../components/client/PromptNoneAuth";
2019
import { addClientIdForSubscriber } from "../../db/tables/google_analytics_clients";
2120
import { logger } from "../functions/server/logging";
@@ -30,13 +29,6 @@ export default async function Layout({ children }: { children: ReactNode }) {
3029
const headersList = await headers();
3130
const countryCode = getCountryCode(headersList);
3231
const session = await getServerSession();
33-
const enabledFlags = await getEnabledFeatureFlags(
34-
session === null
35-
? { isSignedOut: true }
36-
: {
37-
email: session.user.email,
38-
},
39-
);
4032
const billing = getSubscriptionBillingAmount();
4133

4234
const cookieStore = await cookies();
@@ -72,9 +64,7 @@ export default async function Layout({ children }: { children: ReactNode }) {
7264
<CountryCodeProvider countryCode={countryCode}>
7365
<CookiesProvider>
7466
<SubscriptionBillingProvider value={billing}>
75-
{enabledFlags.includes("PromptNoneAuthFlow") && !session && (
76-
<PromptNoneAuth />
77-
)}
67+
{!session && <PromptNoneAuth />}
7868
{children}
7969
</SubscriptionBillingProvider>
8070
<PageLoadEvent />

src/db/tables/featureFlags.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ export const featureFlagNames = [
5858
"LatestScanDateCsatSurvey",
5959
"AutomaticRemovalCsatSurvey",
6060
"AdditionalRemovalStatuses",
61-
"PromptNoneAuthFlow",
6261
"GA4SubscriptionEvents",
6362
"DataBrokerRemovalTimeEstimateLabel",
6463
"DataBrokerRemovalTimeEstimateCsat",

0 commit comments

Comments
 (0)