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

remove secret from cons, add as passwordGrant arg #12

Merged
merged 1 commit into from
Feb 3, 2022

Conversation

maks
Copy link
Contributor

@maks maks commented Feb 1, 2022

This removes the client secret parameter from the constructor and makes it a parameter to the only method that currently uses it.
If passwordGrant() doesn't end up needing it either then it should be removed altogether in a future PR.

Fixes: #11

@maks
Copy link
Contributor Author

maks commented Feb 1, 2022

I haven't changed the version in the pubspec in this PR but given this is a breaking API change, I would assume that the major version number would need to be bumped.

@mishatron
Copy link
Owner

@maks Are you sure secret is required ONLY for passwordGrant?

@maks
Copy link
Contributor Author

maks commented Feb 1, 2022

@mishatron yes I think so, as passwordGrant() was the only place that I found the clientSecret variable being used.

@mishatron mishatron merged commit c139181 into mishatron:master Feb 3, 2022
@mishatron
Copy link
Owner

@maks look at 2.2.0-beta1

@maks
Copy link
Contributor Author

maks commented Feb 4, 2022

@mishatron thank you for looking at the PR, merging and publishing a new version so quickly! very much appreciated 👍🏻

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.

remove client secret as required constructor argument
2 participants