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
- Get a Personal Token from Github, https://github.com/settings/tokens
- 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
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
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