27 lines
517 B
TypeScript
27 lines
517 B
TypeScript
import {
|
|
benefits,
|
|
myPages,
|
|
overview,
|
|
points,
|
|
profile,
|
|
profileEdit,
|
|
stays,
|
|
} from "./myPages"
|
|
|
|
/**
|
|
* These are routes in code we know requires auth
|
|
*
|
|
* Some of these are rewritten in next.config.js
|
|
*/
|
|
export const authRequired = [
|
|
...Object.values(benefits),
|
|
...Object.values(myPages),
|
|
...Object.values(overview),
|
|
...Object.values(profile),
|
|
...Object.values(profileEdit),
|
|
...Object.values(stays),
|
|
...Object.values(points),
|
|
]
|
|
|
|
export const mfaRequired = [...Object.values(profileEdit)]
|