revoking or setting expiration on downscope tokens
AnsweredWe're using Box Content Preview and running into some issues around what happens when the downscoped token expires.
For testing and debugging purposes, I really don't want to have to wait an hour after token exchange to find out whether my expiration-handling code is going to work.
Can I specify the token's lifetime during token exchange? (I don't see it as an option in the token exchange request), or perhaps invalidate a previously issued token on command?
-
Hi ,
Great question! Unfortunately you can't set the expiration directly at the time of creation, but you should be able to revoke a token manually:
https://developer.box.com/v2.0/reference#revoke
Thanks,
Jason
Please sign in to leave a comment.
Comments
1 comment