Skip to content
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

Authentication headers #205

Closed
callmekatootie opened this issue Nov 26, 2021 · 1 comment
Closed

Authentication headers #205

callmekatootie opened this issue Nov 26, 2021 · 1 comment
Projects

Comments

@callmekatootie
Copy link

Under Find more information section of the README, there is:

const response = await request("HEAD /", {
  headers: authentication.headers,
});

However, isn't the structure of authentication object:

{
  type: 'token',
  token: 'ghp_PersonalAccessToken01245678900000000',
  tokenType: 'oauth'
}

so where does the headers come from?

@ghost ghost added this to Inbox in JS Nov 26, 2021
JS automation moved this from Inbox to Done Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
JS
  
Done
Development

No branches or pull requests

3 participants
@callmekatootie @wolfy1339 and others