We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6743a1 commit 49680d6Copy full SHA for 49680d6
src/utils/github.js
@@ -92,8 +92,9 @@ const createRepository = async () => {
92
type: 'input',
93
validate,
94
});
95
- const API_URL = `https://api.github.com/user/repos?access_token=${userToken}`;
96
+ const API_URL = `https://api.github.com/user/repos`;
97
+ axios.defaults.headers.common['Authorization'] = `token ${userToken}`;
98
// Create a new repository.
99
try {
100
await axios.post(API_URL, { name: 'teachcode-solutions' });
0 commit comments