The administration panel lives atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/santiagodc8/tu_perfil.net/llms.txt
Use this file to discover all available pages before exploring further.
/admin/login. It is separate from the public site and requires a valid email and password to enter.
Logging in
Enter your credentials
Type your email address and password in the respective fields, then click Ingresar.
If you see the message “Email o contraseña incorrectos”, check that you are using the email address registered in Supabase Authentication and that caps lock is off.
Creating the first admin user
The panel does not have a public registration page. Admin accounts must be created directly in the Supabase Dashboard.Open your Supabase project
Go to supabase.com/dashboard and select the TuPerfil.net project.
Create the user
Click Add user → Create new user. Enter the email and a strong password, then click Create user.
role = 'admin', you can log in at /admin/login and have full access to every section of the panel.
How route protection works
Every URL under/admin (except /admin/login itself) is protected at two levels:
- Dashboard layout —
src/app/admin/(dashboard)/layout.tsxcallssupabase.auth.getUser()on every request. If no active session exists, it immediately redirects to/admin/login. - Role check — the layout also reads the
profilestable to determine your role (adminoreditor). Pages that require admin access callrequireAdmin()fromsrc/lib/require-admin.ts, which redirects editors back to/adminif they try to access a restricted page.
Logging out
Click Cerrar sesión at the bottom of the sidebar. This callssupabase.auth.signOut(), clears your session, and returns you to /admin/login.