Huggingface.js documentation

接口:OAuthResult

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

接口:OAuthResult

属性

accessToken

• accessToken:string

定义于

packages/hub/src/lib/oauth-handle-redirect.ts:104


accessTokenExpiresAt

• accessTokenExpiresAt:Date

定义于

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


scope

• 作用域:string

已授予的权限

定义于

packages/hub/src/lib/oauth-handle-redirect.ts:114


state

• Optional 状态:string

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

定义于

packages/hub/src/lib/oauth-handle-redirect.ts:110


userInfo

• userInfo:UserInfo

定义于

packages/hub/src/lib/oauth-handle-redirect.ts:106

Update on GitHub