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

Updated Auth Refresh mechanism using AuthSession #282

Closed chenfeiyu132 closed 1 year ago

chenfeiyu132 commented 1 year ago

Status:

:rocket: Ready

Description

After the upgrade from expo-app-auth to expo-auth-session, refreshToken for Google auth is no longer easy to obtain. Now we have to switch our auth flow entirely since expo-auth-session returns null for idToken and refreshToken. The new mechanism involves requesting an authorization_code and then exchanging it to an idToken and refreshToken.

Todos

Screenshots