diff options
| author | MohamedBassem <me@mbassem.com> | 2024-02-06 01:15:14 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-02-06 01:15:14 +0000 |
| commit | d10b76b54745eb6f4972339caa4219cb1f50ae52 (patch) | |
| tree | 22cf575aeb173c8b100e8adc71620efedec2b3fc /lib/types | |
| parent | 81531a46c368293b736bb3b12c413cfbe6e00ec4 (diff) | |
| download | karakeep-d10b76b54745eb6f4972339caa4219cb1f50ae52.tar.zst | |
[API] Add the POST /api/v1/links api
Diffstat (limited to 'lib/types')
| -rw-r--r-- | lib/types/next-auth.d.ts | 12 |
1 files changed, 12 insertions, 0 deletions
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"]; + } +} |
