File size: 182 Bytes
689359a
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import { headers } from "next/headers";

import { auth } from "@/lib/auth";

export async function getServerSession() {
  return auth.api.getSession({ headers: await headers() });
}