mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-04-20 03:50:20 +00:00
13 lines
310 B
TypeScript
13 lines
310 B
TypeScript
"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>
|
|
} |