JWT index

This commit is contained in:
Joannis Orlandos 2017-09-28 15:48:02 +02:00
parent 4ba5422b38
commit bf0730bec5
1 changed files with 37 additions and 0 deletions

37
3.0/docs/jwt/index.md Normal file
View File

@ -0,0 +1,37 @@
# Using JSON Web Token
JSON Web Token is a library containing all JSON Web Token related APIs.
### Index
- [JSON Web Signature](jws.md)
## With Vapor
This package is included with Vapor by default, just add:
```swift
import JWT
```
## Without Vapor
To include it in your package, add the following to your `Package.swift` file.
```swift
// swift-tools-version:4.0
import PackageDescription
let package = Package(
name: "Project",
dependencies: [
...
.package(url: "https://github.com/vapor/jwt.git", .upToNextMajor(from: "3.0.0")),
],
targets: [
.target(name: "Project", dependencies: ["JWT", ... ])
]
)
```
Use `import JSON Web Token` to access JSON Web Token's APIs.