From 3bd123216284286aff7f4ba3f79a728da398637c Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Fri, 16 Jun 2023 12:58:52 -0400 Subject: [PATCH] Tweak auth --- auth.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/auth.ts b/auth.ts index 5d60d94..169c069 100644 --- a/auth.ts +++ b/auth.ts @@ -17,12 +17,12 @@ export const { token.image = profile.picture } return token - }, - // @ts-ignore - authorized({ request, auth }) { - if (!request.nextUrl.pathname.startsWith('/share/')) return true - return !!auth?.user } + // @ts-ignore + // authorized({ request, auth }) { + // if (!request.nextUrl.pathname.startsWith('/share/')) return true + // return !!auth?.user + // } }, pages: { signIn: '/sign-in'