mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 17:00:54 +01:00
* feat: add actual user for trpc wss-dev-server #233 * chore: address pull request feedback * fix: deepsource issue
21 lines
540 B
TypeScript
21 lines
540 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);
|
|
export { getSessionFromToken, sessionTokenCookieName } from "./session";
|