Tweak auth

This commit is contained in:
Jared Palmer 2023-06-16 12:58:52 -04:00
parent 615e8e6384
commit 3bd1232162

10
auth.ts
View file

@ -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'