Files
Homarr/packages/auth/index.ts
Meier Lukas fba767bde3 fix: cache is not exportet from react (#417)
* fix: cache is not exportet from react

* fix: format issue

* fix: type issue
2024-05-01 21:17:28 +02:00

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";