Is that possible to increase expires_in time for token?回答済み
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?
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
Thanks Peter Christensen. 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?
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.
Yup this make sense. Thanks Peter Christensen