diff --git a/.changeset/happy-apes-care.md b/.changeset/happy-apes-care.md new file mode 100644 index 00000000000..23a4d4d131a --- /dev/null +++ b/.changeset/happy-apes-care.md @@ -0,0 +1,6 @@ +--- +'@clerk/clerk-js': patch +'@clerk/types': patch +--- + +Remove deprecated `saml` property from `UserSettings` in favor of `enterpriseSSO` diff --git a/packages/clerk-js/src/core/resources/UserSettings.ts b/packages/clerk-js/src/core/resources/UserSettings.ts index 358f73756c9..361237cda7e 100644 --- a/packages/clerk-js/src/core/resources/UserSettings.ts +++ b/packages/clerk-js/src/core/resources/UserSettings.ts @@ -6,7 +6,6 @@ import type { PasskeySettingsData, PasswordSettingsData, PhoneCodeChannel, - SamlSettings, SignInData, SignUpData, UsernameSettingsData, @@ -112,9 +111,6 @@ export class UserSettings extends BaseResource implements UserSettingsResource { show_sign_in_button: false, }; passwordSettings: PasswordSettingsData = {} as PasswordSettingsData; - saml: SamlSettings = { - enabled: false, - }; signIn: SignInData = { second_factor: { required: false, @@ -229,7 +225,6 @@ export class UserSettings extends BaseResource implements UserSettingsResource { : Math.min(data.password_settings?.max_length ?? defaultMaxPasswordLength, defaultMaxPasswordLength), } : this.passwordSettings; - this.saml = this.withDefault(data.saml, this.saml); this.signIn = this.withDefault(data.sign_in, this.signIn); this.signUp = this.withDefault(data.sign_up, this.signUp); this.social = this.withDefault(data.social, this.social); @@ -256,7 +251,6 @@ export class UserSettings extends BaseResource implements UserSettingsResource { attributes: this.attributes, passkey_settings: this.passkeySettings, password_settings: this.passwordSettings, - saml: this.saml, sign_in: this.signIn, sign_up: this.signUp, social: this.social, diff --git a/packages/types/src/userSettings.ts b/packages/types/src/userSettings.ts index 0827f0af0be..9407cd8e92b 100644 --- a/packages/types/src/userSettings.ts +++ b/packages/types/src/userSettings.ts @@ -86,11 +86,6 @@ export type PasskeySettingsData = { export type OAuthProviders = { [provider in OAuthStrategy]: OAuthProviderSettings; }; - -export type SamlSettings = { - enabled: boolean; -}; - export type EnterpriseSSOSettings = { enabled: boolean; }; @@ -115,10 +110,6 @@ export interface UserSettingsJSON extends ClerkResourceJSON { actions: Actions; social: OAuthProviders; - /** - * @deprecated Use `enterprise_sso` instead. - */ - saml: SamlSettings; enterprise_sso: EnterpriseSSOSettings; sign_in: SignInData; @@ -132,10 +123,6 @@ export interface UserSettingsResource extends ClerkResource { id?: undefined; social: OAuthProviders; - /** - * @deprecated Use `enterprise_sso` instead. - */ - saml: SamlSettings; enterpriseSSO: EnterpriseSSOSettings; attributes: Attributes;