From bf0730bec53859935eef98ca50a964100de2c21f Mon Sep 17 00:00:00 2001 From: Joannis Orlandos Date: Thu, 28 Sep 2017 15:48:02 +0200 Subject: [PATCH] JWT index --- 3.0/docs/jwt/index.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 3.0/docs/jwt/index.md diff --git a/3.0/docs/jwt/index.md b/3.0/docs/jwt/index.md new file mode 100644 index 00000000..e2da854d --- /dev/null +++ b/3.0/docs/jwt/index.md @@ -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.