mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-29 18:59:20 +01:00
21 lines
489 B
TypeScript
21 lines
489 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 { getSessionFromToken, sessionTokenCookieName } from "./session";
|