mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
8 lines
247 B
TypeScript
8 lines
247 B
TypeScript
import { User } from "@prisma/client";
|
|
import { NextApiRequest } from "next";
|
|
import { getSession } from "next-auth/client";
|
|
|
|
export const getMySession = (req?: NextApiRequest): Promise<User | null> =>
|
|
// @ts-expect-error
|
|
getSession({ req });
|