Huggingface.js 文档

接口:OAuthResult

Hugging Face's logo
加入 Hugging Face 社区

并获取增强的文档体验

开始使用

接口:OAuthResult

属性

accessToken

accessToken: string

定义于

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


accessTokenExpiresAt

accessTokenExpiresAt: Date

定义于

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


scope

scope: string

授权范围

定义于

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


state

Optional state: string

在向 OAuth 提供商的原始请求中传递给 OAuth 提供商的状态。

定义于

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


userInfo

userInfo: UserInfo

定义于

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

< > 在 GitHub 上更新