Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
delbaoliveira committed Mar 13, 2024
1 parent f6f8771 commit 6f174a9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Metadata } from 'next';
import { Inter } from 'next/font/google';
import './globals.css';
import { verifyClientSession, verifyServerSession } from '@/lib/session';

const inter = Inter({ subsets: ['latin'] });

Expand All @@ -9,11 +10,17 @@ export const metadata: Metadata = {
description: 'Generated by create next app',
};

export default function RootLayout({
export default async function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
// This is for quick testing, we shouldn't verify the session in a layout
const x = await verifyClientSession();
const y = await verifyServerSession();
console.log(x);
console.log(y);

return (
<html lang="en">
<body className={`${inter.className} dark:bg-black dark:text-white`}>
Expand Down

0 comments on commit 6f174a9

Please sign in to comment.