Skip to content

OAuth 2.0 Authentication - BoxClient from AccessToken #494

@KevinForys

Description

@KevinForys

Description of the Issue

I convert a Box Integration App with the Box TS SDK and I convert now correctly the AuthCode to an AccessToken.

I use this section of the migration guide.

The legacy code used sdk.getPersistentClient(tokenInfo, tokenStore); to retrieve a BoxClient.

How can we actually generate an BoxClient from an access token?

I guess that it's should be something like that :

const accessToken = await oauth.getTokensAuthorizationCodeGrant('code');
const boxClient = new BoxClient (accessToken)

Versions Used

Typescript SDK: v1.11.0
Node.js: v20.18.1

Metadata

Metadata

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions