try onAuth instead

This commit is contained in:
dylan 2024-03-26 00:06:33 -07:00
parent 6ead55d543
commit e00499f08f

View File

@ -21,8 +21,14 @@ const handler = async ({payload}: FirRouteInput<typeof payloadT>) => {
await git.clone({
fs,
http,
headers: {
"Authorization": `token ${token}`,
// headers: {
// "Authorization": `token ${token}`,
// },
onAuth() {
return {
username: token,
password: 'x-access-token',
}
},
dir: "./repos",
url: manifest.repo,