Welcome to the new Box Support website. Check out all the details here on what’s changed.

Box Refresh Token Was Expired Within 3 to 4 Hours

New post


1 comment

  • Nayak

    As already mentioned by you, your env is multi threaded and the most probable reason for the expiry is one of the thread uses the refresh token and by the time it updates the new token another thread triggered the refresh activity which failed as the refresh tokens expire after every use.

    You can apply a lock and wait mechanism for the tokens to ensure no simultaneous calls are made to Box.

    Comment actions Permalink

Please sign in to leave a comment.