File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -142,11 +142,11 @@ window.onload = async () => {
142
142
async function getGithubToken ( gitCode ) {
143
143
144
144
// 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 ) ;
150
150
151
151
// save git token to localStorage
152
152
gitToken = resp . access_token ;
You can’t perform that action at this time.
0 commit comments