Chore/cleanup after trpc migration * Clean up TODOs * Rename REDEMPTION constant to SEARCH_TYPE_REDEMPTION * Update dependencies Remove unused deps from scandic-web Add missing deps to trpc package * Update self-referencing imports * Remove unused variables from scandic-web env * Fix missing graphql-tag package * Actually fix * Remove unused env var Approved-by: Christian Andolf Approved-by: Linus Flood
20 lines
618 B
TypeScript
20 lines
618 B
TypeScript
import type { DefaultJWT } from "next-auth/jwt"
|
|
|
|
import type { RefreshTokenError } from "./lib/types/authError"
|
|
import type { LoginType } from "./lib/types/loginType"
|
|
|
|
// 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
|
|
}
|
|
}
|