feat: implement board access control (#349)
* feat: implement board access control * fix: deepsource issues * wip: address pull request feedback * chore: address pull request feedback * fix: format issue * test: improve tests * fix: type and lint issue * chore: address pull request feedback * refactor: rename board procedures
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { cache } from "react";
|
||||
import type { DefaultSession } from "@auth/core/types";
|
||||
|
||||
import { createConfiguration } from "./configuration";
|
||||
@@ -16,5 +17,11 @@ export * from "./security";
|
||||
|
||||
export const createHandlers = (isCredentialsRequest: boolean) =>
|
||||
createConfiguration(isCredentialsRequest);
|
||||
export const { auth } = createConfiguration(false);
|
||||
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);
|
||||
export { getSessionFromToken, sessionTokenCookieName } from "./session";
|
||||
|
||||
Reference in New Issue
Block a user