Huggingface.js documentation

Interface: Credentials

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface: Credentials

Deprecated

Use AccessToken instead. Pass { accessToken: “hf…” } instead of { credentials: { accessToken: “hf…” } }

Properties

accessToken

accessToken: string

Defined in

hub/src/types/public.ts:21

< > Update on GitHub