You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,13 @@ $ npm install express-jwt
12
12
13
13
`expressjwt(options)`
14
14
15
-
Options has the following paramters:
15
+
Options has the following parameters:
16
16
17
-
-`secret: jwt.Secret | GetVerificationKey` (required): The secret as an string or a function to retrieve the secret.
17
+
-`secret: jwt.Secret | GetVerificationKey` (required): The secret as a string or a function to retrieve the secret.
18
18
-`getToken?: TokenGetter` (optional): A function that receives the express `Request` and returns the token, by default it looks in the `Authorization` header.
19
19
-`isRevoked?: IsRevoked` (optional): A function to verify if a token is revoked.
20
20
-`credentialsRequired?: boolean` (optional): If its false, continue to the next middleware if the request does not contain a token instead of failing, defaults to true.
21
-
-`requestProperty?: string` (optional): name of the property in the request object where the payload is set. Default to `req.auth`.
21
+
-`requestProperty?: string` (optional): Name of the property in the request object where the payload is set. Default to `req.auth`.
22
22
- Plus... all the options available in the [jsonwebtoken verify function](https://github.com/auth0/node-jsonwebtoken#jwtverifytoken-secretorpublickey-options-callback).
23
23
24
24
The available functions have the following interface:
0 commit comments