15 lines
309 B
TypeScript
15 lines
309 B
TypeScript
|
|
import type { NextAuthConfig } from "next-auth";
|
||
|
|
|
||
|
|
const base = process.env.NEXT_PUBLIC_BASE_PATH ?? "";
|
||
|
|
|
||
|
|
export const authConfig = {
|
||
|
|
basePath: "/api/auth",
|
||
|
|
trustHost: true,
|
||
|
|
pages: {
|
||
|
|
signIn: `${base}/login`,
|
||
|
|
newUser: `${base}/`,
|
||
|
|
},
|
||
|
|
providers: [],
|
||
|
|
callbacks: {},
|
||
|
|
} satisfies NextAuthConfig;
|