From b09b66eec6ed0fbf99d93cd6843826f19c911099 Mon Sep 17 00:00:00 2001 From: Dimitris Klouvas Date: Thu, 19 Oct 2023 10:48:19 +0300 Subject: [PATCH] chore(clerk-js,types): Drop `experimental_force_oauth_first` & `experimental__forceOauthFirst` (#1918) * chore(clerk-js,types): Drop `experimental_force_oauth_first` & `experimental__forceOauthFirst` * Create pretty-planes-kick.md --- .changeset/pretty-planes-kick.md | 6 ++++++ packages/clerk-js/src/core/resources/DisplayConfig.ts | 1 - packages/clerk-js/src/ui/utils/test/fixtures.ts | 3 +-- packages/types/src/displayConfig.ts | 1 - 4 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .changeset/pretty-planes-kick.md diff --git a/.changeset/pretty-planes-kick.md b/.changeset/pretty-planes-kick.md new file mode 100644 index 0000000000..b0623a510a --- /dev/null +++ b/.changeset/pretty-planes-kick.md @@ -0,0 +1,6 @@ +--- +"@clerk/clerk-js": patch +"@clerk/types": patch +--- + +Drop `experimental_force_oauth_first` & `experimental__forceOauthFirst` from `DisplayConfig` diff --git a/packages/clerk-js/src/core/resources/DisplayConfig.ts b/packages/clerk-js/src/core/resources/DisplayConfig.ts index 5a2313b69c..fea4246f9d 100644 --- a/packages/clerk-js/src/core/resources/DisplayConfig.ts +++ b/packages/clerk-js/src/core/resources/DisplayConfig.ts @@ -72,7 +72,6 @@ export class DisplayConfig extends BaseResource implements DisplayConfigResource this.captchaPublicKey = data.captcha_public_key; this.supportEmail = data.support_email || ''; this.clerkJSVersion = data.clerk_js_version; - this.experimental__forceOauthFirst = data.experimental_force_oauth_first || false; this.organizationProfileUrl = data.organization_profile_url; this.createOrganizationUrl = data.create_organization_url; this.afterLeaveOrganizationUrl = data.after_leave_organization_url; diff --git a/packages/clerk-js/src/ui/utils/test/fixtures.ts b/packages/clerk-js/src/ui/utils/test/fixtures.ts index c92b538c98..7a4ba62f3b 100644 --- a/packages/clerk-js/src/ui/utils/test/fixtures.ts +++ b/packages/clerk-js/src/ui/utils/test/fixtures.ts @@ -72,9 +72,8 @@ const createBaseDisplayConfig = (): DisplayConfigJSON => { create_organization_url: 'https://accounts.clerk.com/create-organization', after_leave_organization_url: 'https://dashboard.clerk.com', after_create_organization_url: 'https://dashboard.clerk.com', - support_email: null, + support_email: '', branded: true, - experimental_force_oauth_first: false, clerk_js_version: '4', }; }; diff --git a/packages/types/src/displayConfig.ts b/packages/types/src/displayConfig.ts index 28b7b6f657..37fe395335 100644 --- a/packages/types/src/displayConfig.ts +++ b/packages/types/src/displayConfig.ts @@ -29,7 +29,6 @@ export interface DisplayConfigJSON { theme: DisplayThemeJSON; user_profile_url: string; clerk_js_version?: string; - experimental_force_oauth_first?: boolean; organization_profile_url: string; create_organization_url: string; after_leave_organization_url: string;