hack4impact-uiuc / 7000-languages

Helping Indigenous communities around the world teach, learn and sustain their languages
GNU General Public License v3.0
12 stars 2 forks source link

Removed token info from redux store and implemented logout procedure when re-auth fails #217

Closed chenfeiyu132 closed 2 years ago

chenfeiyu132 commented 2 years ago

Status:

:rocket: Ready

Description

Follow up to #204, officially removed idToken from redux store so that we are keeping the information centrally in SecureStore. Additionally, added a log-out flow when the re-auth attempt from the axios interceptor fails-> This way it prompts the user to log in again on the Auth page instead of leaving them at the logged-in navigator.

Fixes #155

Screenshots