Implement next-auth v5
This commit is contained in:
parent
a9e4956909
commit
187b55aad7
15 changed files with 420 additions and 547 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue