auth0 / auth0-mailchimp-export

Allows Auth0 Customers to synchronize their Auth0 User base (those that have an email) with a MailChimp List
9 stars 14 forks source link

Use extension tools for getting an API v2 token #3

Open sandrinodimattia opened 7 years ago

sandrinodimattia commented 7 years ago

The current implementation includes logic to get an API v2 token.

The extension tools already contains logic to fetch the token and also to cache it for the lifetime of the token (eg: if the token is valid for 5 minutes, the token will only be cached for 5 minutes).

This will also give us less code to maintain.

sandrinodimattia commented 7 years ago

Example: https://github.com/auth0-extensions/auth0-extension-tools#auth0-management-api