Authentication

Protected Routes

Protected routes are automatically setup in the EasyToLaunch repository. This is used to ensure that sensitive routes like the /dashboard are only accessible to authenticated users. It uses the auth.getUser() method of Supabase that returns the user session to make sure he's authenticated or not.

It's really simple if the user isn't authenticated adn tries to enter the /dashboard autoamtically gets redirected to the /sign-in page.

Unlock full documentation

This part of the documentation are for members only. Please upgrade your plan to unlock this section.