Next.js Discord

Discord Forum

Can you prevent parts of the client side code being sent to unauthenticated clients?

Unanswered
Hairy Woodpecker posted this in #help-forum
Open in Discord
Hairy WoodpeckerOP
Some of my client side code needs to only be sent to users that have authenticated. Is there a why to ensure the certain routes are only sent to authenticated users? If not I'll create two apps: unauthenticated app and authenticated app

0 Replies