mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 17:00:54 +01:00
* feat: update prettier configuration for print width * chore: apply code formatting to entire repository * fix: remove build files * fix: format issue --------- Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
23 lines
634 B
TypeScript
23 lines
634 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";
|