Do I need authorization code each time for accessing user box account?

隐身守侯 提交于 2019-12-04 12:50:41

Alok, yes, you can save the access and refresh tokens for future use. Some things to note:

  • The access token must be included via an Authorization header on every request to the API.
  • An access token expires after 1 hour. You can use the refresh token to request a new access/refresh token pair.
  • A refresh token expires after 14 60 days. If your application needs to perform a monthly process less frequently than that, you'll need to create a scheduled task or chron job to refresh the access/refresh token pair in the interim. With this task/job in place you can refresh the tokens indefinitely.
  • If both the access and refresh tokens have expired, the user must manually authenticate your application again.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!