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

Deprecate API client constructors that take Context #393

Merged
merged 1 commit into from
Dec 18, 2020
Merged

Conversation

lbalmaceda
Copy link
Contributor

The constructors that take a Context are going to be removed in the next version of this SDK. If you have were using them to pass the account, you can achieve the same result with the following code:

-AuthenticationAPIClient client = new AuthenticationAPIClient(this);
+AuthenticationAPIClient client = new AuthenticationAPIClient(new Auth0(this));
-UsersAPIClient client = new UsersAPIClient(this, "token");
+UsersAPIClient client = new UsersAPIClient(new Auth0(this), "token");

The README is already making use of the Auth0 constructors in the guidance.

@lbalmaceda lbalmaceda added this to the 1.30.0 milestone Dec 18, 2020
@lbalmaceda lbalmaceda requested a review from a team as a code owner December 18, 2020 15:42
@lbalmaceda lbalmaceda merged commit 5aacf24 into master Dec 18, 2020
@lbalmaceda lbalmaceda deleted the depr-api branch December 18, 2020 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants