I am trying to log the user in automatically using their username and password stored in the local storage as 'username' and 'password'.
Before the user is at the log in page, I want the app to log the in and load their data.
Here is the issue:
-When the user opens the app, the app fails to log in
-When the user opens the app, and they print the username and password to the console, it is 'undefined'
-When the users logs in, and they print the username and password to the console, it is all correct
How do I get this working?