-
-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloning with personal access token causing "remote: invalid credentials". #936
Comments
Hi, the extract you've included does look correct... how are you setting I recommend you run with verbose logging enabled, or use the |
Seems like its trying to read from some kind of file? |
If someone stumbles upon this issue, you have to use const b64Token = Buffer.from(args.token).toString('base64');
const git = simpleGit({
baseDir: projectPath,
config: [`http.extraHeader=Authorization: Basic ${b64Token}`],
}); |
It works with me, thanks |
Code:
Issue:
After running the code a github credentials prompt pops up, every time.. Even tho the token is provided in the config.
Upon closing OR filling in the prompt, the following shows:
I just recently created the token, with access to all of my repositories (read-only).
The text was updated successfully, but these errors were encountered: