fixed to handle scope init option

This commit is contained in:
dcore94 2024-10-18 12:44:53 +02:00
parent 3b6899ef1f
commit b5758dadc4
1 changed files with 5 additions and 1 deletions

View File

@ -217,6 +217,10 @@
} else {
kc.enableLogging = false;
}
if (typeof initOptions.scope === 'string') {
kc.scope = initOptions.scope;
}
}
if (!kc.responseMode) {
@ -439,7 +443,7 @@
}
var scope;
if (options && options.scope) {
if (options && options.scope || kc.scope) {
if (options.scope.indexOf("openid") != -1) {
scope = options.scope;
} else {