August 2025
Intermediate to advanced
294 pages
6h 59m
English
We left Tunez in a good place at the end of the previous chapter. Visitors to the app can now register accounts or log in with either an email and password or a magic link. Now we can identify who is using Tunez.
But we couldn’t allow users to authenticate or register an account for Tunez via either of our APIs. The app also doesn’t behave any differently depending on whether a user is logged in or not. Anyone can still create, edit, and delete data. This is what we want to prevent, for better data integrity—unauthenticated users should have a total read-only view of the app, and authenticated users should be able to perform only the actions they are granted access to. We can enforce this by implementing ...
Read now
Unlock full access