Skip to content

Commit d871047

Browse files
committed
Woops forgot to remove scope
1 parent a0741de commit d871047

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ function authenticateUser() {
6565

6666
accessToken = url.substring(url.indexOf(access_tokenStr) + 13, url.indexOf(expires_inStr));
6767

68+
accessToken = accessToken.split('&scope=')[0];
69+
6870
setUserData(accessToken);
6971
authenticationWindow.destroy();
7072
});

0 commit comments

Comments
 (0)