NextJS Fief Auth (Draft)

This commit is contained in:
Koper
2023-08-17 23:32:42 +07:00
parent 1b1e67901c
commit 067d1fbd4b
6 changed files with 144 additions and 9 deletions

11
www/app/fiefWrapper.tsx Normal file
View File

@@ -0,0 +1,11 @@
"use client";
import { FiefAuthProvider } from "@fief/fief/nextjs/react";
export default function FiefWrapper({ children }) {
return (
<FiefAuthProvider currentUserPath="/api/current-user">
{children}
</FiefAuthProvider>
);
}