Skip to main content
Question

Access token without time limit

  • December 21, 2024
  • 2 replies
  • 48 views

Forum|alt.badge.img

I have problem about Access Token, I am trying to use Box API to upload file to box drive from other web, the problem is  access tokens expire after 60min. And my app was built for normal User who don’t know how to get Access Token.

Is there a work around about it ? Or is there anyway I can make that process to be automatic ?! 

My company have box drive Account paid version, Can that give me unexpired token !?

2 replies

  • New Member
  • 1 reply
  • December 23, 2024

Box API access tokens expire after 60 minutes. To manage this, use refresh tokens to obtain new access tokens periodically. Store refresh tokens securely and implement a mechanism to automatically refresh access tokens before they expire. Consider using a server-side approach for improved security and user experience. If your company has a Box Enterprise account, explore options like admin-managed tokens or the Enterprise API for advanced token management.


Forum|alt.badge.img
  • Author
  • New Participant
  • 1 reply
  • December 26, 2024
michs23 wrote:

Box API access tokens expire after 60 minutes. To manage this, use refresh tokens to obtain new access tokens periodically. Store refresh tokens securely and implement a mechanism to automatically refresh access tokens before they expire. Consider using a server-side approach for improved security and user experience. If your company has a Box Enterprise account, explore options like admin-managed tokens or the Enterprise API for advanced token management.

Thank you, I will try that


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings