Add MVP version
This commit is contained in:
18
apps/web/src/providers/next-auth.tsx
Normal file
18
apps/web/src/providers/next-auth.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
"use client";
|
||||
|
||||
import React from "react";
|
||||
|
||||
import type { Session } from "next-auth";
|
||||
import { SessionProvider } from "next-auth/react";
|
||||
|
||||
export type NextAuthProviderProps = {
|
||||
session?: Session | null;
|
||||
children: React.ReactNode;
|
||||
};
|
||||
|
||||
export const NextAuthProvider = ({
|
||||
session,
|
||||
children,
|
||||
}: NextAuthProviderProps) => {
|
||||
return <SessionProvider session={session}>{children}</SessionProvider>;
|
||||
};
|
Reference in New Issue
Block a user