From 954df8f2e3afc0f960039a0c4d1bcdadb2625f25 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/policies/jwt/index.js b/lib/policies/jwt/index.js index 3ab340470..8ee67df21 100644 --- a/lib/policies/jwt/index.js +++ b/lib/policies/jwt/index.js @@ -41,7 +41,8 @@ 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'],