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

Added support for boolean claims #121

Merged
merged 3 commits into from
Feb 2, 2021
Merged

Added support for boolean claims #121

merged 3 commits into from
Feb 2, 2021

Conversation

kaishin
Copy link
Contributor

@kaishin kaishin commented Jan 29, 2021

Not sure if this wasn't added for specific reasons or just an oversight. I have been using it in my fork and was wondering if it could make it to upstream.

Changes

Please describe both what is changing and why this is important. Include:

  • Add support for boolean claims

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 has been tested on the latest version of the platform/language or why not

Checklist

Not sure if this wasn't added for specific reasons or just an oversight. I have been using it in my fork and was wondering if it could make it to upstream.
@kaishin kaishin requested a review from a team as a code owner January 29, 2021 13:15
@Widcket
Copy link
Contributor

Widcket commented Jan 29, 2021

Hi @kaishin, could you please add tests?

@Widcket Widcket added the waiting for customer This issue is waiting for a response from the issue or PR author label Jan 29, 2021
if let string = self.string {
double = Double(string)
} else {
} else if self.boolean == nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise the boolean converts as 0 or 1.

@Widcket Widcket merged commit a08d1c7 into auth0:master Feb 2, 2021
@Widcket Widcket changed the title Add support for boolean claims Added support for boolean claims Feb 2, 2021
@Widcket Widcket added this to the vNext milestone Feb 2, 2021
@Widcket Widcket mentioned this pull request Feb 2, 2021
@kaishin
Copy link
Contributor Author

kaishin commented Mar 6, 2021

Sorry for being unresponsive. Great work getting this merged! I appreciate it.

kaishin added a commit to kaishin/jwt-decode that referenced this pull request Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for customer This issue is waiting for a response from the issue or PR author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants