Huggingface.js documentation

Interface: OAuthResult

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface: OAuthResult

Properties

accessToken

accessToken: string

Defined in

hub/src/lib/oauth-handle-redirect.ts:95


accessTokenExpiresAt

accessTokenExpiresAt: Date

Defined in

hub/src/lib/oauth-handle-redirect.ts:96


scope

scope: string

Granted scope

Defined in

hub/src/lib/oauth-handle-redirect.ts:105


state

Optional state: string

State passed to the OAuth provider in the original request to the OAuth provider.

Defined in

hub/src/lib/oauth-handle-redirect.ts:101


userInfo

userInfo: UserInfo

Defined in

hub/src/lib/oauth-handle-redirect.ts:97

< > Update on GitHub