11 lines
266 B
TypeScript
11 lines
266 B
TypeScript
import NextAuth from "next-auth";
|
|
import { cache } from "react";
|
|
|
|
import { authConfig } from "./config";
|
|
|
|
const { auth: uncachedAuth, handlers, signIn, signOut } = NextAuth(authConfig);
|
|
|
|
const auth = cache(uncachedAuth);
|
|
|
|
export { auth, handlers, signIn, signOut };
|