Implement next-auth v5

This commit is contained in:
Jared Palmer 2023-06-16 11:49:14 -04:00
parent a9e4956909
commit 187b55aad7
15 changed files with 420 additions and 547 deletions

View file

@ -1,10 +1 @@
import { authMiddleware } from '@clerk/nextjs'
// @see https://clerk.dev
export default authMiddleware({
publicRoutes: ['/share/:id']
})
export const config = {
matcher: ['/((?!.*\\..*|_next).*)', '/', '/(api|trpc)(.*)']
}
export { auth as middleware } from './auth'