alan-turing-institute / meet

schedule meetings
MIT License
1 stars 0 forks source link

Use refresh token from Microsoft Graph API #21

Closed penelopeysm closed 3 months ago

penelopeysm commented 3 months ago

https://github.com/alan-turing-institute/meet/blob/a960b978ea852975fa6c6c43af395cf3cb9c78b1/src/Meet/Azure.hs#L62-L75

If the token has expired, attempt to get a new one using the refresh token that is already in the serialised JSON file. This should extend the amount of time before which the user needs to re-authenticate via web.

penelopeysm commented 3 months ago

API documentation: https://learn.microsoft.com/en-us/graph/auth-v2-user?tabs=http#5-use-the-refresh-token-to-renew-an-expired-access-token