Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/customEmailProvider #1070

Merged
merged 2 commits into from
Jan 16, 2025
Merged

Conversation

tusharpandey13
Copy link
Contributor

@tusharpandey13 tusharpandey13 commented Jan 15, 2025

This PR adds support for the custom email provider

Changes

  • SDK-5186 update api for custom email provider support
  • fix tests for email provider

Copy of #1065, builds on work already done by @acwest

References

https://auth0.com/docs/api/management/v2/emails/post-provider

Tests

PASSING

Test Suites: 45 passed, 45 total
Tests:       1447 passed, 1447 total
Snapshots:   0 total
Time:        7.402 s, estimated 9 s
Ran all test suites.

Sample code / manual testing

import { EmailProviderCreate } from 'auth0';

const data: EmailProviderCreate = {
  name: 'custom',
  enabled: true,
  default_from_address: 'string',
  credentials: {},
  settings: {}
};

managementClient.emails.configure(data)
  .then(response => {
    console.log('Email provider configured successfully:', response);
  })
  .catch(error => {
    console.error('Error configuring email provider:', error);
  });

@tusharpandey13 tusharpandey13 requested a review from a team as a code owner January 15, 2025 18:42
@tusharpandey13 tusharpandey13 merged commit 9028d0d into master Jan 16, 2025
4 checks passed
@tusharpandey13 tusharpandey13 deleted the feature/customEmailProvider branch January 16, 2025 12:32
@tusharpandey13 tusharpandey13 mentioned this pull request Jan 21, 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.

3 participants