# Interface: Credentials

**`Deprecated`**

Use `AccessToken` instead. Pass { accessToken: "hf_..." } instead of { credentials: { accessToken: "hf_..." } }

## Properties

### accessToken

• **accessToken**: `string`

#### Defined in[[accesstoken.defined-in]]

[packages/hub/src/types/public.ts:21](https://github.com/huggingface/huggingface.js/blob/main/packages/hub/src/types/public.ts#L21)


<EditOnGithub source="https://github.com/huggingface/huggingface.js/blob/main/docs/hub/interfaces/Credentials.md" />