Skip to content

WithAuthToken NewClient method replaced with NewTokenClient? #2911

@BlancEleven

Description

@BlancEleven

I was going over the documentation (README.md) and noticed that to create a client with a token, the WithAuthToken method must be used:

client := github.NewClient(nil).WithAuthToken("... your access token ...")

After using the library, WithAuthToken seems to not be available anymore. Has this been replaced with NewTokenClient? If so, should the documentation be changed to reflect this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions