[![Swift Version][swift-image]][swift-url]
[![License][license-image]][license-url]
Quick implementation of json web token.
The latest version of JsonWebToken requires Swift 5.9 and MacOS v13 or later. You can download this version of the Swift binaries by following this link.
Add the JsonWebToken
package to the dependencies within your application’s Package.swift
file. Substitute "x.x.x"
with the latest JsonWebToken
release.
.package(url: "https://github.com/LLCFreedom-Space/fs-json-web-token.git", from: "x.x.x")
Add JsonWebToken
to your target's dependencies:
.target(name: "JsonWebToken", dependencies: ["JsonWebToken"]),
import JsonWebToken
Add the JsonWebToken
package to the dependencies within your application’s Package.swift
file. Substitute "name branch"
with the latest JsonWebToken
release.
.package(url: "https://github.com/LLCFreedom-Space/fs-json-web-token.git", branch: "name branch")
Add JsonWebToken
to your target's dependencies:
.target(name: "JsonWebToken", dependencies: ["JsonWebToken"]),
import JsonWebToken
An example of a method call from this library
In routes.swift
you need to call one of the middleware or you can all two of them.