Page 1 of 1

Login System

Posted: Mon Feb 03, 2014 9:28 pm
by Brian Evans

What's the best way to handle logging into the app using our websites API? I want to be able to have them login once and save the info to the phone and when the app is loaded grab what's on the phone to re-verify before proceeding.


Login System

Posted: Mon Feb 03, 2014 9:42 pm
by Maryna Brodina

Hello! "our websites API" - so you use your web site API? Save data (for example token you get while authorization) into localStorage and check if it's valid (if it has expiration time) using your site API.


Login System

Posted: Tue Feb 04, 2014 1:29 am
by mehtashail

Is there a way to encrypt this data when it is written to local storage ?


Login System

Posted: Tue Feb 04, 2014 1:36 am
by Igor

You could use any encryption JS library. For examlpe this one : https://code.google.com/p/crypto-js/