Refresh token before it expires
Description
Add scheduled and immediate token refresh handling for Murena accounts
-
access_token
-> Used to access protected resources. In our case, it has a 1-hour validity. -
refresh_token
-> Used to request a new access token once the current one expires. Each refresh token can be used to request up to 10 access tokens. Usually this gets changed in each access token request. -
expires_at
-> Absolute timestamp in milliseconds indicating when the access token expires.
Screenshots
Technical details
Tests
Issues
- https://gitlab.e.foundation/e/os/backlog/-/issues/3743
- https://gitlab.e.foundation/e/os/backlog/-/issues/3559
10 commandments of code review
Edited by Mohammed Althaf T