Skip to content

Commit bdb6768

Browse files
committed
Update gitauth.js
1 parent 7830aa9 commit bdb6768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/gitauth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ async function getGithubToken(gitCode) {
149149
'&code=' + gitCode, '', true);
150150

151151
// save git token to localStorage
152-
gitToken = resp.access_token;
152+
gitToken = resp.split('access_token=')[1].split('&')[0];
153153
saveGitTokenLS(gitToken);
154154

155155

0 commit comments

Comments
 (0)