-
Notifications
You must be signed in to change notification settings - Fork 73
Closed
Labels
Status: Needs infoFull requirements are not yet known, so implementation should not be startedFull requirements are not yet known, so implementation should not be startedType: SupportAny questions, information, or general needs around the SDK or GitHub APIsAny questions, information, or general needs around the SDK or GitHub APIs
Description
I am using octokit request.js in this way
const { request } = require("@octokit/request");
request("GET /repos/{owner}/{repo}/contents/{path}", {
headers: {
accept: "application/vnd.github.v3+json",
authorization: "token my personal access token here",
},
...other code hereI am getting github deprecation notice:
Please use the Authorization HTTP header instead, as using the access_token query parameter is deprecated. If this token is being used by an app you don't have control over, be aware that it may stop working as a result of this deprecation.
I dont know what to do. I am already using authorization in the header as shown above. Any help is much appreciated.
Metadata
Metadata
Assignees
Labels
Status: Needs infoFull requirements are not yet known, so implementation should not be startedFull requirements are not yet known, so implementation should not be startedType: SupportAny questions, information, or general needs around the SDK or GitHub APIsAny questions, information, or general needs around the SDK or GitHub APIs