diff --git a/frontend/src/hooks.server.test.ts b/frontend/src/hooks.server.test.ts index 708071e..68fab8a 100644 --- a/frontend/src/hooks.server.test.ts +++ b/frontend/src/hooks.server.test.ts @@ -42,7 +42,7 @@ describe('auth guard (hooks.server.ts handle)', () => { expect(resolve).toHaveBeenCalledWith(event); }); - it.each(['/login', '/login/', '/register', '/invite/abc123'])( + it.each(['/login', '/login/', '/register', '/signup', '/signup/', '/invite/abc123'])( 'allows public route %s without auth', async (path) => { const { event, resolve } = createEvent(path); diff --git a/frontend/src/hooks.server.ts b/frontend/src/hooks.server.ts index 0f60418..df32645 100644 --- a/frontend/src/hooks.server.ts +++ b/frontend/src/hooks.server.ts @@ -2,7 +2,7 @@ import type { Handle } from '@sveltejs/kit'; import { redirect } from '@sveltejs/kit'; import { apiClient } from '$lib/server/api'; -const PUBLIC_ROUTES = ['/login', '/register', '/invite']; +const PUBLIC_ROUTES = ['/login', '/register', '/signup', '/invite']; const STATIC_PREFIXES = ['/_app/', '/favicon'];