diff --git a/lib/import-github-repo.js b/lib/import-github-repo.js index db08ab4..238feb0 100644 --- a/lib/import-github-repo.js +++ b/lib/import-github-repo.js @@ -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`)