Files
Homarr/packages/auth/index.ts
2023-12-10 17:12:20 +01:00

20 lines
467 B
TypeScript

import type { DefaultSession } from "@auth/core/types";
import { createConfiguration } from "./configuration";
export type { Session } from "next-auth";
declare module "next-auth" {
interface Session {
user: {
id: string;
} & DefaultSession["user"];
}
}
export * from "./security";
export const createHandlers = (isCredentialsRequest: boolean) =>
createConfiguration(isCredentialsRequest);
export const { auth } = createConfiguration(false);