Skip to content

Feat: Added Support for Non Unique Email Attribute#1210

Merged
tanya732 merged 1 commit intov4from
sdk-6655-non-unique-email-attribute
Oct 16, 2025
Merged

Feat: Added Support for Non Unique Email Attribute#1210
tanya732 merged 1 commit intov4from
sdk-6655-non-unique-email-attribute

Conversation

@tanya732
Copy link
Contributor

@tanya732 tanya732 commented Oct 16, 2025

Changes

Added options.attributes.email.unique to /connections endpoints

Path Method Type Method Name
/api/v2/connections POST create
/api/v2/connections/{id} PATCH update

Manual Testing Snippet

  1. Install npm install auth0
  2. Get Domain, CLientId and ClientSecret from Auth0 Dashboard
const auth = new AuthenticationClient({
  domain: '<DOMAIN>,
  clientId: '<CLIENT_ID>',
  clientSecret: '<CLIENT_SECRET>',
});

// Create Connection with unique email identifier as false. Defines whether the email attribute can be used as a primary identifier. Must be set to false when unique = false.

  const createConnectionPayload: ConnectionCreate = {
      name: "non-unique-test-2",
      strategy: "auth0",
      options: {
        attributes: {
          email: {
            unique: false,
            identifier: { active: false }
          },
          username: {
            identifier: { active: true }
          }
        }
      }
  }

  const createConnection = await auth0.connections.create(createConnectionPayload);
  console.log("createConnection", createConnection);
  

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds unit test coverage
  • This change adds integration test coverage

Checklist

@tanya732 tanya732 marked this pull request as ready for review October 16, 2025 06:41
@tanya732 tanya732 requested a review from a team as a code owner October 16, 2025 06:41
@tanya732 tanya732 merged commit 0089252 into v4 Oct 16, 2025
1 check passed
@tanya732 tanya732 deleted the sdk-6655-non-unique-email-attribute branch October 16, 2025 07:07
@tanya732 tanya732 mentioned this pull request Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants