mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 00:40:58 +01:00
* fix(deps): update dependency @auth/core to ^0.32.0 * fix(deps): update dependency @auth/core to ^0.32.0 * fix: type issues with next-auth types --------- Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com> Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
23 lines
613 B
TypeScript
23 lines
613 B
TypeScript
import type { DefaultSession } from "next-auth";
|
|
|
|
import type { GroupPermissionKey } from "@homarr/definitions";
|
|
|
|
import { createConfiguration } from "./configuration";
|
|
|
|
export type { Session } from "next-auth";
|
|
|
|
declare module "next-auth" {
|
|
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";
|