mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 08:50:56 +01:00
* refactor: replace signIn callback with signIn event, adjust getUserByEmail in adapter to check provider * test: adjusting tests for adapter and events * docs: add comments for unknown auth provider * fix: missing dayjs import
12 lines
375 B
TypeScript
12 lines
375 B
TypeScript
import { cache } from "react";
|
|
|
|
import { createConfiguration } from "./configuration";
|
|
|
|
const { auth: defaultAuth } = createConfiguration("unknown", null);
|
|
|
|
/**
|
|
* 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);
|