URL to get new access token using refresh token:
https://login.live.com/oauth20_token.srf?grant_type=refresh_token&' \
'client_id=%s&' \
'client_secret=%s&'\
'refresh_token=%s&' \
'redirect_uri=%s
when we try to retrieve new access token for a user, we receive invalid_grant error instead of the fact that no permission is denied to our app from the user's onenote account and it happens randomly.
Platform - python