Skip to content

Deprecation notice for authentication via URL query parameters #382

@mbcod3

Description

@mbcod3

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 here

I 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

No one assigned

    Labels

    Status: Needs infoFull requirements are not yet known, so implementation should not be startedType: SupportAny questions, information, or general needs around the SDK or GitHub APIs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions