Skip to content

Commit

Permalink
fix: token url parameter is now authorization (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
zevisert authored and gr2m committed Oct 10, 2018
1 parent f712be0 commit 6f75c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/import-github-repo.js
Expand Up @@ -7,7 +7,7 @@ async function importGitHubRepo (state, {authToken, appId, repoName}) {

const response = await axios({
method: 'post',
url: `https://api.glitch.com/project/githubImport?token=${authToken}&projectId=${appId}&repo=${encodeURIComponent(repoName)}`
url: `https://api.glitch.com/project/githubImport?authorization=${authToken}&projectId=${appId}&repo=${encodeURIComponent(repoName)}`
})

state.debug(`${repoName} imported`)
Expand Down

0 comments on commit 6f75c1a

Please sign in to comment.