Join BoxWorks in San Francisco Nov 12-13! Keynotes, product demos, and Box Master Classes. Reserve your spot!

Is that possible to increase expires_in time for token?

Answered
New post

Comments

4 comments

  • Peter Christensen

    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

    0
    Comment actions Permalink
  • Mitsu Chatrola

    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?

    0
    Comment actions Permalink
  • Peter Christensen

    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.

    0
    Comment actions Permalink
  • Mitsu Chatrola

    Yup this make sense. Thanks Peter Christensen

    0
    Comment actions Permalink

Post is closed for comments.