fix(OAuth): secret not found due to bad regex

This commit is contained in:
LuanRT
2022-02-04 15:20:35 -03:00
parent b3a1cdc1cd
commit b4607d531f

View File

@@ -20,7 +20,7 @@ class OAuth extends EventEmitter {
this.scope = Constants.OAUTH.SCOPE;
this.auth_script_regex = /<script id=\"base-js\" src=\"(.*?)\" nonce=".*?"><\/script>/;
this.identity_regex = /.+?={};var .+?={clientId:\"(?<id>.+?)\",si:\"(?<secret>.+?)\"},/;
this.identity_regex = /.+?={};var .+?={clientId:\"(?<id>.+?)\",.+?:\"(?<secret>.+?)\"},/;
if (auth_info.access_token) return;
this.#requestAuthCode();