# Interface: AuthInfo

## Properties

### accessToken

• `Optional` **accessToken**: `Object`

#### Type declaration[[accesstoken.type-declaration]]

| Name | Type |
| :------ | :------ |
| `createdAt` | `Date` |
| `displayName` | `string` |
| `role` | [`AccessTokenRole`](../modules#accesstokenrole) |

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

[packages/hub/src/lib/who-am-i.ts:53](https://github.com/huggingface/huggingface.js/blob/main/packages/hub/src/lib/who-am-i.ts#L53)

___

### expiresAt

• `Optional` **expiresAt**: `Date`

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

[packages/hub/src/lib/who-am-i.ts:58](https://github.com/huggingface/huggingface.js/blob/main/packages/hub/src/lib/who-am-i.ts#L58)

___

### type

• **type**: [`AuthType`](../modules#authtype)

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

[packages/hub/src/lib/who-am-i.ts:52](https://github.com/huggingface/huggingface.js/blob/main/packages/hub/src/lib/who-am-i.ts#L52)


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