mirror of
https://github.com/shadcn-ui/taxonomy
synced 2026-05-24 01:38:28 +00:00
18 lines
264 B
TypeScript
18 lines
264 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
|
|
}
|
|
}
|
|
|
|
declare module "next-auth" {
|
|
interface Session {
|
|
user: User & {
|
|
id: UserId
|
|
}
|
|
}
|
|
}
|