Upgrade to NextAuth v5

This commit is contained in:
2024-06-18 11:10:30 +04:00
parent 5491d996b8
commit 157951b10e
9 changed files with 64 additions and 90 deletions
+2 -6
View File
@@ -1,7 +1,3 @@
/* eslint-disable new-cap */
import NextAuth from 'next-auth'
import {options} from './options.js'
import {handlers} from '../../../../auth.js'
const handler = NextAuth(options)
export {handler as GET, handler as POST}
export const {GET, POST} = handlers