From d10b76b54745eb6f4972339caa4219cb1f50ae52 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Tue, 6 Feb 2024 01:15:14 +0000 Subject: [API] Add the POST /api/v1/links api --- lib/types/next-auth.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lib/types/next-auth.d.ts (limited to 'lib/types') diff --git a/lib/types/next-auth.d.ts b/lib/types/next-auth.d.ts new file mode 100644 index 00000000..bdd3bd03 --- /dev/null +++ b/lib/types/next-auth.d.ts @@ -0,0 +1,12 @@ +import NextAuth, { DefaultSession } from "next-auth" + +declare module "next-auth" { + /** + * Returned by `useSession`, `getSession` and received as a prop on the `SessionProvider` React Context + */ + interface Session { + user: { + id: string; + } & DefaultSession["user"]; + } +} -- cgit v1.2.3-70-g09d2