c# - OneDrive signing in with acces token -


Currently I'm signing in to OneDrive with a web browser (WinForm). But I would like to create a service that synchronizes my data in one minute for all X-minutes. So when I start my computer the service starts and must be logged in advance. What is the way to save the entry token? Since access tokens expires an hour later, I know, and I do not know how to refresh access tokens again with the latest token. But if I can refresh my access token, can not it end? I do not think my fresh token will be valid for requesting a new access token overnight? And the fresh token is not always valid, right? I hope someone is familiar with this topic and understands my question. I'm really uninhabited at this time so I'm really grateful for the answer.

Edit:

Okay, understand the token and its behavior / end time to refresh. The big problem still exists, how do I get a token using a fresh token? And how do I login with the login token?


Comments