diff --git a/auth.ts b/auth.ts index e5c8348..5c7c1dd 100644 --- a/auth.ts +++ b/auth.ts @@ -18,9 +18,8 @@ export const { } return token } - // // @ts-ignore + // @TODO // authorized({ request, auth }) { - // if (!request.nextUrl.pathname.startsWith('/share/')) return false // return !!auth?.user // } }, diff --git a/next-auth.d.ts b/index.d.ts similarity index 100% rename from next-auth.d.ts rename to index.d.ts diff --git a/middleware.ts b/middleware.ts index 4afe145..af5b703 100644 --- a/middleware.ts +++ b/middleware.ts @@ -1 +1,5 @@ export { auth as middleware } from './auth' + +export const config = { + matcher: ['/'] +}