bearer
This commit is contained in:
parent
e00499f08f
commit
8eb2b392cd
@ -21,15 +21,15 @@ const handler = async ({payload}: FirRouteInput<typeof payloadT>) => {
|
||||
await git.clone({
|
||||
fs,
|
||||
http,
|
||||
// headers: {
|
||||
// "Authorization": `token ${token}`,
|
||||
// },
|
||||
onAuth() {
|
||||
return {
|
||||
username: token,
|
||||
password: 'x-access-token',
|
||||
}
|
||||
headers: {
|
||||
"Authorization": `Bearer ${token}`,
|
||||
},
|
||||
// onAuth() {
|
||||
// return {
|
||||
// username: token,
|
||||
// password: 'x-access-token',
|
||||
// }
|
||||
// },
|
||||
dir: "./repos",
|
||||
url: manifest.repo,
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user