fix custom scopes with single value

stephannn committed Jan 6, 2026 at 19:17 UTC 16eb821d2c213e1a584b9767acb92b6bdb7183f9
1 file changed +1 -1
webserver.js
+1 -1
@@ -7966,7 +7966,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
7966
7967 // Setup Strategy Options
7968 strategy.custom.scope = obj.common.convertStrArray(strategy.custom.scope, ' ')
7969 - if (strategy.custom.scope.length > 1) {
7969 + if (strategy.custom.scope.length > 0) {
7970 strategy.options.params = Object.assign(strategy.options.params || {}, { 'scope': strategy.custom.scope });
7971 } else {
7972 strategy.options.params = Object.assign(strategy.options.params || {}, { 'scope': ['openid', 'profile', 'email'] });