You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Drift/client/types/next-auth.d.ts

21 lines
300 B
TypeScript

import { User } from "next-auth"
import { JWT } from "next-auth/jwt"
type UserId = string
declare module "next-auth/jwt" {
interface JWT {
id: UserId
role: string
}
}
declare module "next-auth" {
interface Session {
user: User & {
id: UserId
role: string
}
}
}