Skip to content

Commit

Permalink
Use enterprise SSO as strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraBeatris committed Dec 2, 2024
1 parent e819163 commit edd622b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/clerk-js/src/core/resources/EmailAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions packages/types/src/emailAddress.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -18,7 +18,7 @@ export type PrepareEmailAddressVerificationParams =
redirectUrl: string;
}
| {
strategy: EmailSAMLStrategy;
strategy: EnterpriseSSOStrategy;
redirectUrl: string;
};

Expand Down
1 change: 0 additions & 1 deletion packages/types/src/strategies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit edd622b

Please sign in to comment.