Created
July 11, 2024 08:48
-
-
Save rahulmore01/88c95df90536064a3a461ee22507ef86 to your computer and use it in GitHub Desktop.
root layout next js, for next auth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "../styles/globals.css"; | |
import AuthProvider from "@/utility/nextauth-session-provider"; | |
export default async function RootLayout({ children }) { | |
return ( | |
<> | |
<html lang="en" suppressHydrationWarning> | |
<head /> | |
<body> | |
<AuthProvider>{children}</AuthProvider> | |
</body> | |
</html> | |
</> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment