Skip to content

Deekor/JSONWebToken.swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • Audience (aud) Claim

Algorithms

This library supports the following algorithms:

  • None - Unsecured JWTs
  • HS256 - HMAC using SHA-256 hash algorithm (default)

License

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

About

Swift implementation of JSON Web Token (JWT).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 94.3%
  • Ruby 3.6%
  • C++ 2.1%