Files
web/types/jwt.d.ts
Christel Westerberg c7446032fe fix: handle webviews
2024-07-15 13:35:36 +02:00

18 lines
526 B
TypeScript

import { LoginType } from "./components/tracking"
import type { DefaultJWT } from "next-auth/jwt"
import type { RefreshTokenError } from "./authError"
// Module augmentation
// https://authjs.dev/getting-started/typescript#popular-interfaces-to-augment
declare module "next-auth/jwt" {
/** Returned by the `jwt` callback and `auth`, when using JWT sessions */
interface JWT extends DefaultJWT, RefreshTokenError {
access_token: string
expires_at: number
refresh_token: string
loginType: LoginType
}
}