source:
auth.d.ts
| Last change on this file was 898cf68, checked in by , 7 months ago | |
|---|---|
|
|
| File size: 307 bytes | |
| Line | |
|---|---|
| 1 | import type { DefaultSession } from "@auth/core/types"; |
| 2 | |
| 3 | declare module "@auth/core/types" { |
| 4 | interface User { |
| 5 | id: string; |
| 6 | isAdmin?: boolean; |
| 7 | } |
| 8 | |
| 9 | interface Session { |
| 10 | user?: { |
| 11 | id: string; |
| 12 | isAdmin?: boolean; |
| 13 | } & DefaultSession["user"]; |
| 14 | } |
| 15 | } |
Note:
See TracBrowser
for help on using the repository browser.
