Merged in feat/sw-3192-no-user (pull request #2680)

feat(SW-3192): Checks if user exists, otherwise logout and show error

* feat(SW-3192): Checks if user exists, otherwise logout and show error
This commit is contained in:
Linus Flood
2025-08-22 09:47:54 +00:00
parent caffa1821f
commit e2544f9f89
10 changed files with 238 additions and 0 deletions

View File

@@ -32,6 +32,15 @@ export const logout = {
sv: "/sv/logga-ut",
}
export const logoutSafely = {
da: "/da/logoutSafely",
de: "/de/logoutSafely",
en: "/en/logoutSafely",
fi: "/fi/logoutSafely",
no: "/no/logoutSafely",
sv: "/sv/logoutSafely",
}
/** @type {import('@scandic-hotels/common/constants/routes/langRoute').LangRoute} */
export const logoutUnLocalized = {
da: "/da/logout",
@@ -58,4 +67,5 @@ export const handleAuth = [
...Object.values(verifymagiclink),
...Object.values(loginUnLocalized),
...Object.values(logoutUnLocalized),
...Object.values(logoutSafely),
]