Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

set up expired time to downscope token.

Completed
New post

Comments

2 comments

  • Merry Gacrier

    Box tokens (OAuth 2.0 access tokens) typically have a fixed expiration time set by Box (60 minutes by default) and cannot be shortened directly. However, you can implement a workaround to achieve the effect of a shorter token expiration:     sisbén puntaje

    Use a Token Refresh Mechanism: When the access token expires, your app can use the refresh token to obtain a new access token without requiring user re-authentication. While this won’t change the default expiration, it allows you to handle tokens effectively.

    Token Caching and Manual Expiry: Set up a timer in your application that treats tokens as "expired" after a shorter period (like 15 minutes). After this interval, discard the access token and use the refresh token to obtain a new one. This approach helps if you want to limit the usage window of each token manually.

    Implement Session Management: If your application requires high security, you can enforce a shorter "session" expiration on your side (like 15 minutes), independent of Box's access token. After 15 minutes, you can prompt the user to re-authenticate, refreshing both the access and refresh tokens.

    0
    Comment actions Permalink
  • Rona

    Hi Ping, 

    Welcome to Box Community! 

    To help address your issue, I created a new ticket and a member from Box Product Support will be in touch, please keep an eye out. 

    Thanks for posting!

    0
    Comment actions Permalink

Please sign in to leave a comment.