diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 3e7e84c..42764a2 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -14,7 +14,7 @@ const geistMono = Geist_Mono({ }); export const metadata: Metadata = { - title: 'SWOT Manager', + title: 'Workshop Manager', description: "Application de gestion d'ateliers SWOT pour entretiens managériaux", }; diff --git a/src/lib/auth.config.ts b/src/lib/auth.config.ts index ba8d615..d8a3f25 100644 --- a/src/lib/auth.config.ts +++ b/src/lib/auth.config.ts @@ -8,7 +8,10 @@ export const authConfig: NextAuthConfig = { authorized({ auth, request: { nextUrl } }) { const isLoggedIn = !!auth?.user; const isOnProtectedPage = - nextUrl.pathname.startsWith('/sessions') || nextUrl.pathname.startsWith('/api/sessions'); + nextUrl.pathname.startsWith('/sessions') || + nextUrl.pathname.startsWith('/api/sessions') || + nextUrl.pathname.startsWith('/motivators') || + nextUrl.pathname.startsWith('/api/motivators'); const isOnAuthPage = nextUrl.pathname.startsWith('/login') || nextUrl.pathname.startsWith('/register');