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