From edd622bf1891546c55162bfe3ab6686b218373c0 Mon Sep 17 00:00:00 2001 From: Laura Beatris <48022589+LauraBeatris@users.noreply.github.com> Date: Mon, 2 Dec 2024 19:24:41 -0300 Subject: [PATCH] Use enterprise SSO as strategy --- packages/clerk-js/src/core/resources/EmailAddress.ts | 2 +- packages/types/src/emailAddress.ts | 4 ++-- packages/types/src/strategies.ts | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) 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';