mirror of https://github.com/vapor/docs.git
Improve the JWT documentation
This commit is contained in:
parent
99f440d44f
commit
7bf722deb1
|
|
@ -1,7 +1,15 @@
|
|||
# Using JSON Web Token
|
||||
# JSON Web Token
|
||||
|
||||
JSON Web Token is a library containing all JSON Web Token related APIs.
|
||||
|
||||
### What is JWT?
|
||||
|
||||
JWT is a standard for managing client tokens. Tokens are a form of identification and proof to the server. JWT is cryptographically signed, so it is not possible to falsify the validity of a JWT unless any of the following conditions is met:
|
||||
|
||||
- A broken algorithm was used (such as MD5)
|
||||
- A weak signing key was used and brute-forced
|
||||
- The signing key used was leaked out to a third party
|
||||
|
||||
### Index
|
||||
|
||||
- [JSON Web Signature](jws.md)
|
||||
|
|
@ -34,4 +42,4 @@ let package = Package(
|
|||
)
|
||||
```
|
||||
|
||||
Use `import JSON Web Token` to access JSON Web Token's APIs.
|
||||
Use `import JWT` to access JSON Web Token's APIs.
|
||||
|
|
|
|||
Loading…
Reference in New Issue