Closed lukecyca closed 6 years ago
Hey @lukecyca, here's what I think:
Why don't we put this logout button in the settings screen? It can be one of the menu options or we can put a regular logout button at the bottom. It's where users would expect the logout to be.
I think we can simply store the information in local storage like I store the user settings today. Instead of them filling them in manually (as it is in the current version) we'd just store the account info returned by auth0. What do you think? We already have a setter and a getter in store for username and email address, we just need to add one for the access token.
I addressed point 1 above, but the other three remain.
Merging as a WIP so we can work on this together.
This PR adds a LoginScreen to the very top of the navigation hierarchy.
This login screen is functional now, but requires a number of refinements prior to merging:
responseObj.access_token
is required for making subsequent requests tocorald
Important: We are using an Expo service for AuthSession, which requires using
exp start
instead ofreact-native-scripts start
. See here.