mirror of
https://github.com/ajnart/homarr.git
synced 2026-03-06 20:30:57 +01:00
* fix(deps): update dependency @auth/core to ^0.31.0 * fix: typecheck issue * fix: more issues with types * fix: add newest next-auth beta version as types were changed and depend on each other * fix: format issues --------- Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com> Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
24 lines
608 B
TypeScript
24 lines
608 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 { getSessionFromToken, sessionTokenCookieName } from "./session";
|