diff --git a/packages/client/src/nirax.ts b/packages/client/src/nirax.ts index 7e481f148..1d6c03050 100644 --- a/packages/client/src/nirax.ts +++ b/packages/client/src/nirax.ts @@ -224,7 +224,7 @@ export class Router extends EventEmitter<{ throw new Error(`no route found for: ${path}`); } - if (res.route.loginRequired) { + if (res.route.loginRequired || res.child?.route.loginRequired) { pleaseLogin("/"); }