mirror of
https://github.com/ajnart/homarr.git
synced 2026-03-01 18:00:55 +01:00
27 lines
641 B
TypeScript
27 lines
641 B
TypeScript
import type { DefaultSession } from "@auth/core/types";
|
|
|
|
import type { GroupPermissionKey } from "@homarr/definitions";
|
|
|
|
import { createConfiguration } from "./configuration";
|
|
|
|
export type { Session } from "@auth/core/types";
|
|
|
|
declare module "@auth/core/types" {
|
|
interface Session {
|
|
user: {
|
|
id: string;
|
|
permissions: GroupPermissionKey[];
|
|
} & DefaultSession["user"];
|
|
}
|
|
}
|
|
|
|
export * from "./security";
|
|
|
|
export const createHandlers = (isCredentialsRequest: boolean) =>
|
|
createConfiguration(isCredentialsRequest);
|
|
|
|
export {
|
|
getSessionFromTokenAsync as getSessionFromToken,
|
|
sessionTokenCookieName,
|
|
} from "./session";
|