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:
karanshukla-sarvaha 2024-09-17 16:06:51 +05:30 committed by GitHub
parent 39577522e0
commit 905584c742
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}