Merged in feat/LOY-230-Microsoft-Entra-ID-Auth (pull request #2113)
Feat(LOY-230): DTMC Routes with Entra ID Auth & Error Page Handling * feat(LOY-230): Link Scandic Friends and Azure accounts * fix(LOY-230): remove employee id param setting * fix(LOY-230): return token in jwt callback for auth.dtmc.ts Approved-by: Michael Zetterberg Approved-by: Christian Andolf
This commit is contained in:
30
apps/scandic-web/constants/contactSupport.ts
Normal file
30
apps/scandic-web/constants/contactSupport.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { Lang } from "./languages"
|
||||
|
||||
/**
|
||||
* Contact support information (phone numbers and emails) by language.
|
||||
*
|
||||
* Note: These values are intentionally hardcoded rather than managed through
|
||||
* Localise. Contact information changes infrequently, and hardcoding
|
||||
* avoids the need to inform content editors and markets about updates, reducing
|
||||
* potential support queries.
|
||||
*/
|
||||
|
||||
const mainNumber = "+46 8 517 517 00"
|
||||
|
||||
export const supportPhone: Record<Lang, string> = {
|
||||
[Lang.da]: "+45 33 48 04 01",
|
||||
[Lang.de]: mainNumber,
|
||||
[Lang.en]: mainNumber,
|
||||
[Lang.fi]: "0200 81800",
|
||||
[Lang.no]: "+47 23 15 50 00",
|
||||
[Lang.sv]: mainNumber,
|
||||
}
|
||||
|
||||
export const supportEmail: Record<Lang, string> = {
|
||||
[Lang.da]: "memberdk.scandic@scandichotels.com",
|
||||
[Lang.de]: "memberde@scandichotels.com",
|
||||
[Lang.en]: "member@scandichotels.com",
|
||||
[Lang.fi]: "memberfi@scandichotels.com",
|
||||
[Lang.no]: "memberno@scandichotels.com",
|
||||
[Lang.sv]: "memberse@scandichotels.com",
|
||||
}
|
||||
1
apps/scandic-web/constants/dtmc.ts
Normal file
1
apps/scandic-web/constants/dtmc.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const DTMC_SUCCESS_BANNER_KEY = "card_added"
|
||||
@@ -9,11 +9,30 @@ export const employeeBenefits: LangRoute = {
|
||||
de: "/de/employee-benefits",
|
||||
}
|
||||
|
||||
export const linkEmployment: LangRoute = {
|
||||
en: "/en/link-employment",
|
||||
sv: "/sv/link-employment",
|
||||
no: "/no/link-employment",
|
||||
fi: "/fi/link-employment",
|
||||
da: "/da/link-employment",
|
||||
de: "/de/link-employment",
|
||||
export const linkEmploymentError: LangRoute = {
|
||||
en: `/en/link-employment-error`,
|
||||
sv: `/sv/link-employment-error`,
|
||||
no: `/no/link-employment-error`,
|
||||
fi: `/fi/link-employment-error`,
|
||||
da: `/da/link-employment-error`,
|
||||
de: `/de/link-employment-error`,
|
||||
}
|
||||
|
||||
export const dtmcLogin: LangRoute = {
|
||||
en: "/en/dtmc",
|
||||
sv: "/sv/dtmc",
|
||||
no: "/no/dtmc",
|
||||
fi: "/fi/dtmc",
|
||||
da: "/da/dtmc",
|
||||
de: "/de/dtmc",
|
||||
}
|
||||
|
||||
export const dtmcApiCallback = "/api/web/auth/dtmc"
|
||||
|
||||
// All DTMC routes that should be protected by the ENABLE_DTMC flag.
|
||||
export const handleDTMC = [
|
||||
// ...Object.values(employeeBenefits),
|
||||
...Object.values(dtmcLogin),
|
||||
...Object.values(linkEmploymentError),
|
||||
dtmcApiCallback,
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user