Practicing user authentication with Node/Passport and Phonegap