Update strategy.js

This commit is contained in:
Vivien Adnot
2018-03-19 13:46:40 +01:00
committed by GitHub
parent d12cc69ef4
commit d2874ad1be
+1 -1
View File
@@ -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"].