Skip to content

User Login & Authentication

Martha Sharpe edited this page Jan 21, 2021 · 7 revisions

User authentication for this app begins in the navigation folder with AuthNavigator. This determines whether to show the Dashboard or the Login Screen when the app is opened.

Auto Login

As soon as the user opens the app, an action is called to see if there is a valid access token stored on the device in SecureStore.

If there is a valid access token, the user is automatically logged in and taken to the main navigation stack. If not, they remain on the login screen. If there is an expired token, they are logged out via the api middleware and returned to the login screen. The user sees a loading spinner until this is resolved.

Login Screen

Clone this wiki locally