A.W.H.
Posts: 0
Joined: Sat Jun 20, 2015 7:02 am

Can't log user in automatically using storage variables

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?

Image

Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Can't log user in automatically using storage variables

Hi -

You have errors in the browser console, please debug them - https://devcenter.appery.io/documenta...

Check your first service invocation with GET, what are request/response in network tab for this service.

Return to “Issues”