import type { LoginType } from "@scandic-hotels/common/constants/loginType" import type { DefaultJWT } from "next-auth/jwt" import type { RefreshTokenError } from "./lib/types/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 loginType: LoginType mfa_expires_at?: number mfa_scope?: boolean refresh_token?: string employeeId?: string } }