Fix authentication/loading and implement /users/friends API route
Fixed an issue signing in
- Under some circumstances (starting the app from a pinned icon on home screen) the app would get stuck when loading user after receiving API response and would sometimes crash when logging in
- Rewritten authentication code to be more understandable, issue seems resolved for some mysterious reason. Got to love JS!
Fixed signing out
- App now logs user out of Auth0 when signing out
- Allows selecting different method when logging back in
Remove /dashboard
endpoint and replace with /users/friends
- Adds clarity and makes sign in and loading user more straightforward
Apk still freezing up :(