Skip to content

make "claims" of "ClaimSet" readable #99

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# JSON Web Token

[![Build Status](http://img.shields.io/travis/kylef/JSONWebToken.swift/master.svg?style=flat)](https://travis-ci.org/kylef/JSONWebToken.swift)

Swift implementation of [JSON Web Token](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
Fork of https://github.com/kylef/JSONWebToken.swift that resolves the issue "Get raw claim set data" ((https://github.com/kylef/JSONWebToken.swift/issues/69)

## Installation

=======
Swift Pacakage Manager is the recommended installation method for JSONWebToken, [CocoaPods](http://cocoapods.org/) is also supported.

```ruby
Expand Down Expand Up @@ -94,7 +93,7 @@ This library supports the following algorithms:
- `hs256` - HMAC using SHA-256 hash algorithm (default)
- `hs384` - HMAC using SHA-384 hash algorithm
- `hs512` - HMAC using SHA-512 hash algorithm

## License

JSONWebToken is licensed under the BSD license. See [LICENSE](LICENSE) for more info.
2 changes: 1 addition & 1 deletion Sources/JWT/ClaimSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func parseTimeInterval(_ value: Any?) -> Date? {
}

public struct ClaimSet {
var claims: [String: Any]
public internal (set) var claims: [String: Any]

public init(claims: [String: Any]? = nil) {
self.claims = claims ?? [:]
Expand Down