Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 744 Bytes

README.md

File metadata and controls

35 lines (21 loc) · 744 Bytes

JSON Web Token

Build Status

Swift implementation of JSON Web Token.

Installation

CocoaPods is the recommended installation method.

pod 'JWT'

Usage

Decoding a JWT

import JWT

JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.2_8pWJfyPup0YwOXK7g9Dn0cF1E3pdn299t4hSeJy5w")

Supported claims

  • Issuer (iss) Claim
  • Expiration Time (exp) Claim
  • Not Before (nbf) Claim
  • Issued At (iat) Claim

License

JWT is licensed under the BSD license. See LICENSE for more info.