|
const apiUrl = state.githubToken ? |
|
`https://api.github.com/repos/${orgName}/${repoName}/issues?access_token=${state.githubToken}` : |
|
`https://api.github.com/repos/${orgName}/${repoName}/issues`; |
Please use the Authorization HTTP header instead, as using the access_token query parameter is deprecated and will be removed July 1st, 2020.
Visit https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api/#authenticating-using-query-parameters for more information.