issues
search
HellowLab
/
DblFeature
A React-Native Tinder style mobile app to help people find matches for movies to watch together.
1
stars
0
forks
source link
Improve user persistance and 401 handling
#50
Closed
mango23322
closed
1 month ago
mango23322
commented
1 month ago
on login:
check if token exists (if not, route to login)
check if token is valid (if not, refresh token)
try to get "my user info" using token (this will return a 403 if it is invalid, if this happens, follow the standard path for 403 errors).
If get my user info is successful, route to Home page.
standard flow for 403 errors:
make api call, token fails, 403 error handling is called
check if token is valid, if not, log out user
refresh token, if this fails, log out user
re-attempt api call, if this fails, log out user
on login:
standard flow for 403 errors: