#Implement AuthWrapper in filebased routing

6 messages · Page 1 of 1 (latest)

sturdy oyster
#

You could achieve this with a layout route

#

Have you looked at the authenticated routes example?

#

Its a matter if putting your auth wrapper logic in the layout route over there.

sturdy oyster
#

That's where the layout route comes in. You'll only be checking it in there.

The child routes of the layout can be considered to already be authenticated.

#

Yea

#

Just, make them all a child of the layout route. It won't affect the URLs, so you should be fine.