...
- Upgrade our django OAuth library to django-oauth-toolkit.
- Update client-side code as follows:
- send API request with access token
- If access token is invalid, try to update it using refresh token
- if refresh request passes, update the access token and re-send the initial API request
- If refresh request fails, ask user to re-authenticate
- Update the Client IDs for the new apps (see Client Rollout Plan).
Expiration Values
- Set the default expiration for Access Tokens to 1 day (the accepted amount of time for a user to continue to use an unexpired token even after revocation).
- Set the expiration time for Refresh Tokens to 2 weeks (analogous to our session cookies).
...