Allow a maxAge
of 0
when building a login URL (#32855)
Closes #32764 Signed-off-by: Karan Shukla <karan.shukla@sarvaha.com>
This commit is contained in:
parent
39577522e0
commit
905584c742
1 changed files with 1 additions and 1 deletions
|
@ -450,7 +450,7 @@ function Keycloak (config) {
|
|||
url += '&prompt=' + encodeURIComponent(options.prompt);
|
||||
}
|
||||
|
||||
if (options && options.maxAge) {
|
||||
if (options && typeof options.maxAge === 'number') {
|
||||
url += '&max_age=' + encodeURIComponent(options.maxAge);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue