Skip to content

[hub] accessToken is ignored in listDatasets #1063

@severo

Description

@severo

Calling

listDatasets({accessToken: "hf_..."})

does not work. You currently have to do

listDatasets({credentials: {accessToken: "hf_..."}})

which is marked as deprecated.

The culprit is here:

...(params?.credentials ? { Authorization: `Bearer ${accessToken}` } : undefined),

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