# Interface: OAuthResult

## Properties

### accessToken

• **accessToken**: `string`

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

[packages/hub/src/lib/oauth-handle-redirect.ts:104](https://github.com/huggingface/huggingface.js/blob/main/packages/hub/src/lib/oauth-handle-redirect.ts#L104)

___

### accessTokenExpiresAt

• **accessTokenExpiresAt**: `Date`

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

[packages/hub/src/lib/oauth-handle-redirect.ts:105](https://github.com/huggingface/huggingface.js/blob/main/packages/hub/src/lib/oauth-handle-redirect.ts#L105)

___

### scope

• **scope**: `string`

Granted scope

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

[packages/hub/src/lib/oauth-handle-redirect.ts:114](https://github.com/huggingface/huggingface.js/blob/main/packages/hub/src/lib/oauth-handle-redirect.ts#L114)

___

### state

• `Optional` **state**: `string`

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

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

[packages/hub/src/lib/oauth-handle-redirect.ts:110](https://github.com/huggingface/huggingface.js/blob/main/packages/hub/src/lib/oauth-handle-redirect.ts#L110)

___

### userInfo

• **userInfo**: [`UserInfo`](UserInfo)

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

[packages/hub/src/lib/oauth-handle-redirect.ts:106](https://github.com/huggingface/huggingface.js/blob/main/packages/hub/src/lib/oauth-handle-redirect.ts#L106)


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