fix(sso): allow sso token with underscore

This commit is contained in:
yflory 2026-05-22 15:52:50 +02:00
parent 00d830b7f0
commit ca2c6a81f9

View File

@ -91,5 +91,5 @@ Basic.restore = function (Env, archivePath, path, cb) {
};
Basic.isValidId = id => {
return id && typeof(id) === "string" && /^[a-zA-Z0-9-+=]+$/.test(id);
return id && typeof(id) === "string" && /^[a-zA-Z0-9-+_=]+$/.test(id);
};