mirror of
https://github.com/vercel/next-learn.git
synced 2026-07-07 22:18:45 +00:00
Update to latest + refactoring.
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import NextAuth from 'next-auth';
|
||||
import { authOptions } from '@/auth';
|
||||
import { handlers } from '@/auth';
|
||||
|
||||
const handler = NextAuth(authOptions);
|
||||
|
||||
export { handler as GET, handler as POST };
|
||||
const { GET, POST } = handlers;
|
||||
export { GET, POST };
|
||||
|
||||
Reference in New Issue
Block a user