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:
10
apps/scandic-web/constants/routes/errorPages.ts
Normal file
10
apps/scandic-web/constants/routes/errorPages.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { LangRoute } from "@scandic-hotels/common/constants/routes/langRoute"
|
||||
|
||||
export const userNotFound: LangRoute = {
|
||||
en: "/en/error/user-not-found",
|
||||
sv: "/sv/error/user-not-found",
|
||||
no: "/no/error/user-not-found",
|
||||
fi: "/fi/error/user-not-found",
|
||||
da: "/da/error/user-not-found",
|
||||
de: "/de/error/user-not-found",
|
||||
}
|
||||
@@ -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),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user