Implementing User Authentication and Global Notifications
In the previous chapters, we configured the pages, created mocked APIs, and made the API calls from our application. However, the application still relies on test data when it comes to the authentication of the users in the admin dashboard.
In this chapter, we will build the application’s authentication system, allowing users to authenticate and access protected resources in the admin dashboard. We will also be creating a toast notification system to provide feedback to users if an action happens that we want to notify them about.
In this chapter, we will cover the following topics:
- Implementing the authentication system
- Implementing notifications
By the end of the chapter, we will have learned how to authenticate users in our application and also how to handle the global application state with Zustand.