INNER CODE UNIT · TypeScript
excludedRoutes
tenseijs/tensei · packages/auth/src/index.ts:849
const excludedRoutes = routes.filter(route => !route.config.csrf)
this.config.excludedPathsFromCsrf = [
...this.config.excludedPathsFromCsrf,
...excludedRoutes.map(route => route.config.path)
]
require('@tensei/cookie-sessions').register({
app,
excludedPaths: this.config.excludedPathsFromCsrf
})
}
if (this.config.httpOnlyCookiesAuth || this.socialAuthEnabled()) {
const ExpressSession = require('express-session')
const ExpressSessionMikroORMStore = require('express-session-mikro-orm')
.default