synapsestudios / synapse-common

DEPRECATED
MIT License
1 stars 2 forks source link

Handle expired access tokens #29

Closed paulstatezny closed 9 years ago

paulstatezny commented 9 years ago

Handle expired access tokens

Acceptance Criteria

  1. Whenever an API call made through the auth-gateway returns 401, it assumes that the access token has expired.
  2. It then tries to exchange the refresh token for a new access token.
  3. When the new access token is returned, it is saved. Then, the original failed request is re-made and its success/failure callback correctly attached.
  4. If the refresh token fails dispatch a logout event
  5. Remove event.js and dispatcher.js (flux stuff is taking over the functionality of these files)

    Tasks

    • Modify auth-gateway and gateway to perform refresh token exchange.

      Other Notes

    • Plan B of #25
paulstatezny commented 9 years ago

:star:

zpchavez commented 9 years ago

:hand:

zpchavez commented 9 years ago

Submitted questions and/or concerns :interrobang:

paulstatezny commented 9 years ago

:star: Questions addressed

paulstatezny commented 9 years ago

:star:

zpchavez commented 9 years ago

:+1: if it works

paulstatezny commented 9 years ago

:one: