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 rawValue accessor for Claims #69

Merged
merged 1 commit into from Oct 17, 2018
Merged

Added rawValue accessor for Claims #69

merged 1 commit into from Oct 17, 2018

Conversation

cocojoe
Copy link
Member

@cocojoe cocojoe commented Aug 10, 2018

Added Example to Playground
Added Tests

Fixes: #67

@cocojoe cocojoe added this to the v2-Next milestone Aug 10, 2018
Added Example to Playground
Added Tests
}

it("should return array") {
expect(token.claim(name: "custom").rawValue as? [Int]).toNot(beNil())
Copy link
Contributor

Choose a reason for hiding this comment

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

You can go further and add a test for object-like claims and even check their values. For this line in particular, you can check the contents are [1,2,3]

@cocojoe cocojoe merged commit 5f0f838 into master Oct 17, 2018
@cocojoe cocojoe mentioned this pull request Dec 17, 2018
@Widcket Widcket deleted the added-claim-access branch July 26, 2022 15:50
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