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

Authorization Error Fix #6

Open
Radioactive92177 opened this issue Sep 4, 2020 · 0 comments
Open

Authorization Error Fix #6

Radioactive92177 opened this issue Sep 4, 2020 · 0 comments

Comments

@Radioactive92177
Copy link
Contributor

Those of you who are facing the Authorization error from Github as they have deprecated the query parameter method, here's what you have to do

  1. Get a Personal Token from Github, https://github.com/settings/tokens
  2. Put the token inside authorization in the Header option of the fetch parameter
    const response = await fetch(url, { headers: { authorization: "token YOUR TOKEN", }, });
    And that's it, problem solved

Feel free to ping me if you face any other problem @Radioactive92177

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant