diff --git a/packages/clerk-js/src/core/resources/EmailAddress.ts b/packages/clerk-js/src/core/resources/EmailAddress.ts index c50fb127a8..6f6f9d0c32 100644 --- a/packages/clerk-js/src/core/resources/EmailAddress.ts +++ b/packages/clerk-js/src/core/resources/EmailAddress.ts @@ -93,7 +93,7 @@ export class EmailAddress extends BaseResource implements EmailAddressResource { clerkVerifyEmailAddressCalledBeforeCreate('SignUp'); } const response = await this.prepareVerification({ - strategy: 'saml', + strategy: 'enterprise_sso', redirectUrl: redirectUrl, }); if (!response.verification.externalVerificationRedirectURL) { diff --git a/packages/types/src/emailAddress.ts b/packages/types/src/emailAddress.ts index 9afef85bc2..c43341e4a6 100644 --- a/packages/types/src/emailAddress.ts +++ b/packages/types/src/emailAddress.ts @@ -1,6 +1,6 @@ import type { IdentificationLinkResource } from './identificationLink'; import type { ClerkResource } from './resource'; -import type { EmailCodeStrategy, EmailLinkStrategy, EmailSAMLStrategy } from './strategies'; +import type { EmailCodeStrategy, EmailLinkStrategy, EnterpriseSSOStrategy } from './strategies'; import type { CreateEmailLinkFlowReturn, CreateEnterpriseConnectionLinkFlowReturn, @@ -18,7 +18,7 @@ export type PrepareEmailAddressVerificationParams = redirectUrl: string; } | { - strategy: EmailSAMLStrategy; + strategy: EnterpriseSSOStrategy; redirectUrl: string; }; diff --git a/packages/types/src/strategies.ts b/packages/types/src/strategies.ts index 0ffdd83c25..0b73fb8849 100644 --- a/packages/types/src/strategies.ts +++ b/packages/types/src/strategies.ts @@ -7,7 +7,6 @@ export type PasswordStrategy = 'password'; export type PhoneCodeStrategy = 'phone_code'; export type EmailCodeStrategy = 'email_code'; export type EmailLinkStrategy = 'email_link'; -export type EmailSAMLStrategy = 'saml'; export type TicketStrategy = 'ticket'; export type TOTPStrategy = 'totp'; export type BackupCodeStrategy = 'backup_code';