0

I recently integrated OneNote API in my application. The question is: When I refresh my access token(as one access token lasts for only an hour) a new refresh token is returned from the API.

As I read somewhere that a refresh token is good for an year, does the new refresh token's validity starts from the time of generation(after refreshing token)?

Reference link 1

Reference link 2

Any help is appreciated.

Amey Khadatkar
  • 414
  • 3
  • 16

2 Answers2

0

It is up to the OneNote Authorization Server that issues the tokens to set the expiry for the refresh token. It is also optional by spec to renew the refresh token at the time that the original one is used. If done so, it is good security practice to invalidate the old one because otherwise it would not make much sense to issue a new one in the first place. So yes, the new refresh token's validity should start at the time of generation.

Hans Z.
  • 50,496
  • 12
  • 102
  • 115
0

MSA refresh tokens are good for a year and O365 (azure AD) tokens are good for 90 days.