Supporting multiple users
At some point, it’s likely that you’ll want to extend your apps to allow multiple users to log in and manage their own data. You’ll want to show them only their own data. In this tutorial, we show how straightforward this is with Anvil.
We start with the app from the News Aggregator tutorial, and turn it into a multi-user app complete with login form:
You don’t need to have completed the News Aggregator tutorial to do this tutorial.
However, you may want to complete the Feedback Form tutorial or News Aggregator tutorial if you are new to Anvil.
Click the following link to clone the news aggregator app to use as a starting point.
Chapters
In this tutorial, you'll:Add the users service
Use Anvil’s built-in Users Service to manage signup and login.
Link news articles to users
Change the list of news articles displayed on the Homepage, depending on who is logged into our app.