TransparentHealth / smh_app

Share My Health App: An application for Community Members and Community Based Organizations
Apache License 2.0
2 stars 3 forks source link

Use refresh token when access token has expired in connecting to sharemyhealth API #175

Closed sharrisoncaktus closed 5 years ago

sharrisoncaktus commented 5 years ago

Sometimes the access_token to the sharemyhealth API expires, so we get 403 Forbidden when attempting to fetch data.

When this happens, use the refresh token to retrieve a new access token, then continue with the originally-attempted request.

aviars commented 5 years ago

root cause of occasional 403 when accessing PHI.