From d5e4c4e48967ab0f31d83de308a045373159c284 Mon Sep 17 00:00:00 2001 From: Vivien Adnot Date: Mon, 19 Mar 2018 13:46:40 +0100 Subject: [PATCH] Update strategy.js --- lib/strategy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/strategy.js b/lib/strategy.js index 6ed24063..b9846828 100644 --- a/lib/strategy.js +++ b/lib/strategy.js @@ -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"].