From 8a957dbee78a2df01870524e8e5c696df04c008d Mon Sep 17 00:00:00 2001 From: jbc5099 Date: Fri, 17 Jul 2020 12:00:35 -0600 Subject: [PATCH] made schema more explicit --- lib/policies/jwt/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/policies/jwt/index.js b/lib/policies/jwt/index.js index 3ab340470..3b9c28f08 100644 --- a/lib/policies/jwt/index.js +++ b/lib/policies/jwt/index.js @@ -41,7 +41,9 @@ module.exports = { }, algorithms: { type: 'array', - description: 'If defined, limits valid jwts to specified algorithms' + description: 'If defined, limits valid jwts to specified algorithms', + items: { type: 'string' }, + enum: ['HS256', 'HS384', 'HS512', 'RS256', 'RS384', 'RS512'] } }, required: ['jwtExtractor', 'checkCredentialExistence'],