feat: change social provider config to flat config

This commit is contained in:
Bereket Engida
2024-09-23 23:19:22 +03:00
parent 516458aedd
commit 675a9206f9
34 changed files with 111 additions and 501 deletions

View File

@@ -8,14 +8,13 @@ import { GeistSans } from "geist/font/sans";
import { Wrapper, WrapperWithQuery } from "@/components/wrapper";
import { createMetadata } from "@/lib/metadata";
export const metadata = createMetadata({
title: {
template: "%s | Better Auth",
default: "Better Auth",
},
description: "The most comprehensive authentication library for typescript",
metadataBase: new URL("https://demo.better-auth.com",)
metadataBase: new URL("https://demo.better-auth.com"),
});
export default function RootLayout({
@@ -31,9 +30,7 @@ export default function RootLayout({
<body className={`${GeistSans.variable} ${GeistMono.variable} font-sans`}>
<ThemeProvider attribute="class" defaultTheme="dark">
<Wrapper>
<WrapperWithQuery>
{children}
</WrapperWithQuery>
<WrapperWithQuery>{children}</WrapperWithQuery>
</Wrapper>
<Toaster richColors closeButton />
</ThemeProvider>