15 lines
485 B
TypeScript
15 lines
485 B
TypeScript
import NextAuth, { type NextAuthConfig } from "next-auth";
|
|
import Google from "next-auth/providers/google";
|
|
|
|
const authConfig: NextAuthConfig = {
|
|
providers: [Google],
|
|
callbacks: {},
|
|
};
|
|
|
|
const nextAuth = NextAuth(authConfig);
|
|
|
|
export const handlers: typeof nextAuth.handlers = nextAuth.handlers;
|
|
export const signIn: typeof nextAuth.signIn = nextAuth.signIn;
|
|
export const signOut: typeof nextAuth.signOut = nextAuth.signOut;
|
|
export const auth: typeof nextAuth.auth = nextAuth.auth;
|