Swift implementation of JSON Web Token.
CocoaPods is the recommended installation method.
pod 'JWT'
import JWT
JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.2_8pWJfyPup0YwOXK7g9Dn0cF1E3pdn299t4hSeJy5w")
- Issuer (
iss
) Claim - Expiration Time (
exp
) Claim - Not Before (
nbf
) Claim - Issued At (
iat
) Claim - Audience (
aud
) Claim
This library supports the following algorithms:
- None - Unsecured JWTs
- HS256 - HMAC using SHA-256 hash algorithm (default)
JWT is licensed under the BSD license. See LICENSE for more info.