Skip to main content
Question

Is that possible to increase expires_in time for token?

  • May 22, 2025
  • 4 replies
  • 55 views

Forum|alt.badge.img

Hello,

We are using box-ui-elements to connect to box in our application. When we login our token expires in around 1 hour. Is that possible to increase expires_in time for token? If yes how?

4 replies

Forum|alt.badge.img

Hi Mitsu

The standard box access tokens you get from our OAuth2.0, JWT or Client Credentials Grant apps has a 60 minute lifetime. There is not an option in the API to increase this lifetime. Depending on your exact use case you could look into https://developer.box.com/guides/applications/limited-access-apps/ which allows for longer lived tokens but comes with its own limitations. 

Best regards, Peter Christensen, Platform Solutions Engineer, Box


Forum|alt.badge.img

Thanks 363373027287. Link to limited access app says we should use it if we "wants to use Box View or only Box's preview services" but list of APIs under it shows support for upload, download etc... So my question is If we go with limited access app do we able to use upload, download functionality?


Forum|alt.badge.img

It is supported but not designed for it I think is the point they are trying to make. The limited access app is normally used when you are sharing something without a specific user context - eg. public documents on a website - as the long life token always belongs to the app. So it depends on your exact use case whether it makes sense to use this.


Forum|alt.badge.img

Yup this make sense. Thanks 363373027287