Huggingface.js documentation

Interface: AuthInfo

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface: AuthInfo

Properties

accessToken

Optional accessToken: Object

Type declaration

Name Type
createdAt Date
displayName string
role AccessTokenRole

Defined in

hub/src/lib/who-am-i.ts:53


expiresAt

Optional expiresAt: Date

Defined in

hub/src/lib/who-am-i.ts:58


type

type: AuthType

Defined in

hub/src/lib/who-am-i.ts:52

< > Update on GitHub