1 parent c3f528f commit a3cc180Copy full SHA for a3cc180
1 file changed
src/ResponseValidator.js
@@ -258,12 +258,12 @@ export default class ResponseValidator {
258
if (keys.length > 1) {
259
Log.error("No kid found in id_token");
260
return Promise.reject(new Error("No kid found in id_token"));
261
- } else {
+ }
262
+ else {
263
// kid is mandatory only when there are multiple keys in the referenced JWK Set document
264
// see http://openid.net/specs/openid-connect-core-1_0.html#Signing
265
kid = keys[0].kid;
266
}
-
267
268
269
let key = keys.filter(key => {
0 commit comments