Skip to content

Protect Content


Challenge

At the moment, anyone who visits our home page can see our jokes. Those are valuable punchlines, and should be reserved for authenticated users!

Start by inserting each joke into a jokes collection in Firestore. That process should look something like this 👇

Jokes collection

Then tweak the home page so that

  • anyone can view the joke setups
  • only logged-in users with a verifed email can view the joke punchlines

Demo

Protected content