Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Refresh token before it expires

Mohammed Althaf T requested to merge 3743-main-token_expiry into main

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

10 commandments of code review

👪 ❤️ https://gitlab.e.foundation/groups/e/-/wikis/contribute/development-processes/code-review-guidelines

Edited by Mohammed Althaf T

Merge request reports

Loading