13 lines
246 B
TypeScript
13 lines
246 B
TypeScript
import type { DefaultSession } from 'next-auth';
|
|
|
|
declare module 'next-auth' {
|
|
interface Session {
|
|
accessToken: string;
|
|
user: {
|
|
id: string;
|
|
name: string;
|
|
role: string;
|
|
} & DefaultSession['user'];
|
|
}
|
|
}
|