I'm working on a blazor server software, and I've now finished the database part of the server. Now there are functions such as creating a new user, deleting a user, modifying a user, verifying a user, and so on. They work fine. However, I now want to make the client log in (you don't need to provide pages, you just need to provide logic) and add restrictions to some pages (you can log in to view, you don't need to provide specific pages either), what should I do?
Users should not need to log in every time they visit, and the login information should be saved. I don't want to use user authentication provided by Microsoft because it's too complicated, and I don't need the system to be very secure, just block non-logged-in guest access. If there is a location that is not clearly described, please feel free to ask.