From 2c2d05fd0a2c3c26d765f8a6beb88d907a097c1d Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Sun, 11 Feb 2024 14:54:52 +0000
Subject: refactor: Migrating to trpc instead of next's route handers

---
 packages/web/app/dashboard/components/Sidebar.tsx | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'packages/web/app/dashboard/components/Sidebar.tsx')

diff --git a/packages/web/app/dashboard/components/Sidebar.tsx b/packages/web/app/dashboard/components/Sidebar.tsx
index 3b4e1649..44892e81 100644
--- a/packages/web/app/dashboard/components/Sidebar.tsx
+++ b/packages/web/app/dashboard/components/Sidebar.tsx
@@ -1,12 +1,11 @@
 import { Button } from "@/components/ui/button";
-import { authOptions } from "@/lib/auth";
 import { Archive, MoreHorizontal, Star, Tag, Home, Brain } from "lucide-react";
-import { getServerSession } from "next-auth";
 import { redirect } from "next/navigation";
 import SidebarItem from "./SidebarItem";
+import { getServerAuthSession } from "@/server/auth";
 
 export default async function Sidebar() {
-  const session = await getServerSession(authOptions);
+  const session = await getServerAuthSession();
   if (!session) {
     redirect("/");
   }
-- 
cgit v1.2.3-70-g09d2

