mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 08:50:56 +01:00
fix: cache is not exportet from react (#417)
* fix: cache is not exportet from react * fix: format issue * fix: type issue
This commit is contained in:
11
packages/auth/next.ts
Normal file
11
packages/auth/next.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user