Skip to content

Commit

Permalink
fix: missing login prompt details
Browse files Browse the repository at this point in the history
Fixes #853
  • Loading branch information
HNicolas authored Jan 12, 2021
1 parent 27881ea commit c7b0036
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/helpers/interaction_policy/prompts/login/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ module.exports = () => new Prompt(
const { oidc } = ctx;

return {
...(oidc.params.max_age === undefined ? { max_age: oidc.params.max_age } : undefined),
...(oidc.params.login_hint === undefined ? { login_hint: oidc.params.login_hint } : undefined),
...(oidc.params.id_token_hint === undefined ? { id_token_hint: oidc.params.id_token_hint } : undefined),
...(oidc.params.max_age === undefined ? undefined : { max_age: oidc.params.max_age }),
...(oidc.params.login_hint === undefined ? undefined : { login_hint: oidc.params.login_hint }),
...(oidc.params.id_token_hint === undefined ? undefined : { id_token_hint: oidc.params.id_token_hint }),
};
},

Expand Down

0 comments on commit c7b0036

Please sign in to comment.