feat(SW-2873): Move select-hotel to booking flow * crude setup of select-hotel in partner-sas * wip * Fix linting * restructure tracking files * Remove dependency on trpc in tracking hooks * Move pageview tracking to common * Fix some lint and import issues * Add AlternativeHotelsPage * Add SelectHotelMapPage * Add AlternativeHotelsMapPage * remove next dependency in tracking store * Remove dependency on react in tracking hooks * move isSameBooking to booking-flow * Inject searchParamsComparator into tracking store * Move useTrackHardNavigation to common * Move useTrackSoftNavigation to common * Add TrackingSDK to partner-sas * call serverclient in layout * Remove unused css * Update types * Move HotelPin type * Fix todos * Merge branch 'master' into feat/sw-2873-move-selecthotel-to-booking-flow * Merge branch 'master' into feat/sw-2873-move-selecthotel-to-booking-flow * Fix component Approved-by: Joakim Jäderberg
20 lines
639 B
TypeScript
20 lines
639 B
TypeScript
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
|
|
}
|
|
}
|