mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-30 03:09:19 +01:00
12 lines
365 B
TypeScript
12 lines
365 B
TypeScript
|
|
import { cache } from "react";
|
||
|
|
|
||
|
|
import { createConfiguration } from "./configuration";
|
||
|
|
|
||
|
|
const { auth: defaultAuth } = createConfiguration(false);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* This is the main way to get session data for your RSCs.
|
||
|
|
* This will de-duplicate all calls to next-auth's default `auth()` function and only call it once per request
|
||
|
|
*/
|
||
|
|
export const auth = cache(defaultAuth);
|