mirror of
https://github.com/hanzoai/passport-jwt.git
synced 2026-09-24 17:01:40 +00:00
Update strategy.js
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ var passport = require('passport-strategy')
|
||||
* (asymmetric) for the given undecoded jwt token string and request
|
||||
* combination. done has the signature function done(err, secret).
|
||||
* REQUIRED unless `secretOrKey` is provided.
|
||||
* jwtFromRequest: (REQUIRED) Function that accepts a reqeust as the only parameter and returns the either JWT as a string or null
|
||||
* jwtFromRequest: (REQUIRED) Function that accepts a request as the only parameter and returns the either JWT as a string or null
|
||||
* issuer: If defined issuer will be verified against this value
|
||||
* audience: If defined audience will be verified against this value
|
||||
* algorithms: List of strings with the names of the allowed algorithms. For instance, ["HS256", "HS384"].
|
||||
|
||||
Reference in New Issue
Block a user