refactor: enhance authentication and signup flow with new providers, update middleware matcher, and improve type safety for API responses
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
"use client"
|
||||
|
||||
import type { Session } from "next-auth"
|
||||
import { SessionProvider } from "next-auth/react"
|
||||
|
||||
type Props = {
|
||||
children: React.ReactNode
|
||||
session?: Session
|
||||
}
|
||||
|
||||
export const AuthProvider = ({ children, session }: Props) => {
|
||||
return <SessionProvider session={session}>{children}</SessionProvider>
|
||||
}
|
||||
Reference in New Issue
Block a user