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

Rework how claims are decoded #35

Merged
merged 1 commit into from
Aug 17, 2016
Merged

Rework how claims are decoded #35

merged 1 commit into from
Aug 17, 2016

Conversation

hzalaz
Copy link
Member

@hzalaz hzalaz commented Aug 17, 2016

Add Claim object to handle conversion of claims to common types

The Claim object will convert a claim of the jwt to the following values:

  • [String]
  • String
  • Int: from a numeric value or a string
  • Double: from a numeric value or a string
  • NSDate: parsed as a Double and then treated as NSTimeInterval since 1970

Closes #23

Add Claim object to handle conversion of claims to common types

The `Claim` object will convert a claim of the jwt to the following values:

- [String]
- String
- Int: from a numeric value or a string
- Double: from a numeric value or a string
- NSDate: parsed as a Double and then treated as NSTimeInterval since 1970
@hzalaz hzalaz merged commit 30f5a62 into master Aug 17, 2016
@hzalaz hzalaz deleted the bugfix-nsdate branch August 17, 2016 13:59
@hzalaz hzalaz modified the milestone: 1.1.0 Aug 17, 2016
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.

1 participant