Adding Authentication

Good job if you have made it this far. You used Swift not only to build an iOS app, but also a full stack web application, and you also set up tests and an automated deployment pipeline for your app, so that you can develop and deploy code with ease. Now, in this chapter, you will finish off your Shopping List app by adding the concept of users to your app and associating Shopping Lists with a specific user.

Currently, our app does not support multiple user accounts. We show all of the Shopping Lists to anyone who opens the app or goes to the web app. There is no concept of users creating their own Shopping List and being able to get only their Shopping List. We will be changing that in this chapter, and to do so, we ...

Get Hands-On Full-Stack Development with Swift 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.