mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-29 18:59:20 +01:00
* fix: credentials login not working cause of cookie secure flag not possible for http * chore: add missing comment * fix: lint issue
12 lines
382 B
TypeScript
12 lines
382 B
TypeScript
import { cache } from "react";
|
|
|
|
import { createConfiguration } from "./configuration";
|
|
|
|
const { auth: defaultAuth } = createConfiguration("unknown", null, 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);
|