Building a secure app

Now that we have a better understanding of client-side security and its drawbacks, let's put it into practice by developing an app with the following features:

  • There is a public home screen that can be seen by everybody who uses the app
  • There is a private part that shows some personal information about a user, which is only accessible to authenticated users
  • There is logic for the authentication of users through a simple log-in form
  • There is logic for the authorization and authentication of users to access the otherwise private parts of the application

Starting off

Let's start with the configuration of our basic project structure. If you have read the book until this point, this should be second nature to you by now! Go to a desired ...

Get Learning Node.js for Mobile Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.