Skip to content

Commit d97a233

Browse files
authored
Add oauth scope (#184)
Co-authored-by: Marco de Abreu <[email protected]>
1 parent ee92e3b commit d97a233

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "w3champions",
3-
"version": "1.5.5",
3+
"version": "1.5.6",
44
"private": true,
55
"description": "Always stay up to date with this Launcher for the community Ladder Warcraft 3 Champions.",
66
"author": "Deespul LLC",
@@ -129,4 +129,4 @@
129129
"last 2 versions",
130130
"not dead"
131131
]
132-
}
132+
}

src/background.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,9 @@ function setWindowBounds() {
337337
}
338338
}
339339

340-
const authUrlChina = 'https://www.battlenet.com.cn/oauth/authorize?response_type=code&client_id=d7bd6dd46e2842c8a680866759ad34c2&redirect_uri=http://localhost:8080/login'
340+
const authUrlChina = 'https://www.battlenet.com.cn/oauth/authorize?scope=openid%20streaming.titles&response_type=code&client_id=d7bd6dd46e2842c8a680866759ad34c2&redirect_uri=http://localhost:8080/login'
341341
const logoutUrlChina = 'https://www.battlenet.com.cn/login/logout';
342-
const authUrlEu = 'https://oauth.battle.net/oauth/authorize?response_type=code&client_id=d7bd6dd46e2842c8a680866759ad34c2&redirect_uri=http://localhost:8080/login';
342+
const authUrlEu = 'https://oauth.battle.net/oauth/authorize?scope=openid%20streaming.titles&response_type=code&client_id=d7bd6dd46e2842c8a680866759ad34c2&redirect_uri=http://localhost:8080/login';
343343
const logoutUrlEu = 'https://battle.net/login/logout';
344344

345345
let authUrl = authUrlEu;

0 commit comments

Comments
 (0)