diff --git a/lib/helpers/interaction/prompts/login/max_age.js b/lib/helpers/interaction/prompts/login/max_age.js index 377acf5a0..5ae3fdfb0 100644 --- a/lib/helpers/interaction/prompts/login/max_age.js +++ b/lib/helpers/interaction/prompts/login/max_age.js @@ -10,7 +10,7 @@ module.exports = new Check('max_age', 'End-User authentication could not be obta return true; } - if (oidc.session.past(oidc.params.max_age)) { + if (oidc.session.past(oidc.params.max_age) && (!ctx.oidc.result || !ctx.oidc.result.login)) { return true; }