Regarding Refresh access token expiring in 1 hour
HI Team, I am using Box.V2 SDK. I am using developer access token to refresh after every one hour. I would need help to ensure that my refresh token should not be expired. Please let me know if anyways are there? I also need to know how to get refresh token. I read somewhere that SDK will refresh access token automatically if refresh token is there. Please let us know the solution.
Thanks
-
Hi - Are you referring to the Windows SDK v2 ? (https://github.com/box/box-windows-sdk-v2). If so, depending on which platform you are building on you can view sample code where you can input your Client ID, Secret and Redirect URI
i.e https://github.com/box/box-windows-sdk-v2/tree/master/Box.V2.Samples.WP
1) Developer tokens are only good for testing but not advised for long term application deliveryas they expire every 60 minutes and must be manually regenerated by the developer.2) Access tokens also expire every 60 minutes but they are generated as a “pair” of relatedAccess and Refresh tokens. The refresh tokens are valid for up to 60 days and can be used any time inthat period to call the Box OAuth service and return a new pair of valid Access & Refresh tokens.During application design you should decide where you will store these tokens (token-information.txt / database / csv ) and when to make a refresh call.Here is an in depth tutuorial to generate your first pair of Access and Refresh tokensOther links which may be useful:
サインインしてコメントを残してください。
コメント
1件のコメント