mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 17:00:54 +01:00
* fix: cache is not exportet from react * fix: format issue * wip: add usage of group permissions * feat: show inherited groups and add manage group * refactor: improve board access management * chore: address pull request feedback * fix: type issues * fix: migrations * test: add unit tests for board permissions, permissions and board router * test: add unit tests for board router and get current user permissions method * fix: format issues * fix: deepsource issue
24 lines
594 B
TypeScript
24 lines
594 B
TypeScript
import type { DefaultSession } from "@auth/core/types";
|
|
|
|
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 { getSessionFromToken, sessionTokenCookieName } from "./session";
|