Next.js Discord

Discord Forum

Restricting access to certain routes

Unanswered
West African Lion posted this in #help-forum
Open in Discord
West African LionOP
Hi. I'd like to restrict access to routes like /admin to logged in users with admin privileges. Admin privileges are to be checked through Firebase Authentication. How do I restrict access?

0 Replies