diff --git a/lib/policies/jwt/index.js b/lib/policies/jwt/index.js index 3ab340470..6d749bad7 100644 --- a/lib/policies/jwt/index.js +++ b/lib/policies/jwt/index.js @@ -41,6 +41,7 @@ module.exports = { }, algorithms: { type: 'array', + items: { type: 'string', enum: ['HS256', 'HS384', 'HS512', 'RS256', 'RS384', 'RS512'] }, description: 'If defined, limits valid jwts to specified algorithms' } },