main
|
Last change
on this file since 8de343e was 898cf68, checked in by Tome <gjorgievtome@…>, 7 months ago |
|
Config authjs
|
-
Property mode
set to
100644
|
|
File size:
307 bytes
|
| Rev | Line | |
|---|
| [898cf68] | 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.