Martin Ongtangco
Martin Ongtangco

Reputation: 23535

Proper way to store authentication in a Phonegap application

Let's say i have a phonegap application connecting to a web service to validate login credentials. Once authenticated, i want to have persistent authentication just like a standard web app that stores a cookies in a browser.

What are the guidelines for these? With security, reliability and standards are considered.

Please don't make this as a "native app vs html5 wrapped app " debate.

I appreciate all logical answers. Thank you.

Upvotes: 5

Views: 460

Answers (1)

BigBalli
BigBalli

Reputation: 817

is this an issue of generating authentication or storing it?

To generate, since you can't use UDID anymore, keep FB or twitter id is fine. To store, you can write to UserDefaults or to an actual file (there was localStorage but it's currently unreliable).

Upvotes: 0

Related Questions