Fix up auth

This commit is contained in:
Jared Palmer 2023-06-16 13:30:27 -04:00
parent 8a142fcdaa
commit f4bcba82d1
3 changed files with 5 additions and 2 deletions

View file

@ -18,9 +18,8 @@ export const {
} }
return token return token
} }
// // @ts-ignore // @TODO
// authorized({ request, auth }) { // authorized({ request, auth }) {
// if (!request.nextUrl.pathname.startsWith('/share/')) return false
// return !!auth?.user // return !!auth?.user
// } // }
}, },

View file

View file

@ -1 +1,5 @@
export { auth as middleware } from './auth' export { auth as middleware } from './auth'
export const config = {
matcher: ['/']
}