How generate a developer token automatically in Node js?

Highlighted
Occasional Contributor

How generate a developer token automatically in Node js?

Hello everybody, I am here to ask if someone know how can I generate a developer token for get information about the links from box, I understand and know about the API from box and I understand the API I know about the developer token but this token only last 1 hour and I was wondering if someone know how can I generate a developer token but with more duration.

1 REPLY 1
Highlighted
Contributor

Re: How generate a developer token automatically in Node js?

Hi @carlostorres1, you can refer to https://developer.box.com/reference/post-oauth2-token/ for generating Oauth2 access and refresh token. The access token will still be valid only for 1 hour but with the help of refresh token you can generate a new access token again