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 () => {
142142async 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 ;
You can’t perform that action at this time.
0 commit comments