Skip to content

Commit 7830aa9

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

git/gitauth.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ window.onload = async () => {
142142
async function getGithubToken(gitCode) {
143143

144144
// post through CORS proxy to git with clientId, clientSecret and code
145-
const resp = await axios.post(window.location.origin + '/api/cors?url=' +
146-
'https://github.com/login/oauth/access_token?' +
147-
'client_id=7ede3eed3185e59c042d' +
148-
'&client_secret=c1934d5aab1c957800ea8e84ce6a24dda6d68f45' +
149-
'&code=' + gitCode);
145+
const resp = await axios.get(window.location.origin + '/api/cors?url=' +
146+
'https://github.com/login/oauth/access_token?' +
147+
'client_id=7ede3eed3185e59c042d' +
148+
'&client_secret=c1934d5aab1c957800ea8e84ce6a24dda6d68f45' +
149+
'&code=' + gitCode, '', true);
150150

151151
// save git token to localStorage
152152
gitToken = resp.access_token;

0 commit comments

Comments
 (0)