mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-05 14:19:25 +01:00
20 lines
467 B
TypeScript
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);
|