2023-12-08 22:35:15 +01:00
|
|
|
import type { DefaultSession } from "@auth/core/types";
|
|
|
|
|
|
2023-12-10 17:12:20 +01:00
|
|
|
import { createConfiguration } from "./configuration";
|
2023-12-08 22:35:15 +01:00
|
|
|
|
|
|
|
|
export type { Session } from "next-auth";
|
|
|
|
|
|
|
|
|
|
declare module "next-auth" {
|
|
|
|
|
interface Session {
|
|
|
|
|
user: {
|
|
|
|
|
id: string;
|
|
|
|
|
} & DefaultSession["user"];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-10 17:12:20 +01:00
|
|
|
export * from "./security";
|
|
|
|
|
|
|
|
|
|
export const createHandlers = (isCredentialsRequest: boolean) =>
|
|
|
|
|
createConfiguration(isCredentialsRequest);
|
2024-04-30 21:32:55 +02:00
|
|
|
|
2024-03-25 18:57:59 +01:00
|
|
|
export { getSessionFromToken, sessionTokenCookieName } from "./session";
|