CoreID/config/traps.config.js
2020-05-31 18:00:05 -05:00

28 lines
769 B
JavaScript

const traps_config = {
types: {
password_reset: {
redirect_to: '/password/reset',
assume_trust: true,
allowed_routes: [
'/password/reset',
'/api/v1/password/resets',
'/auth/logout',
'/api/v1/locale/batch',
],
},
mfa_challenge: {
redirect_to: '/auth/mfa/challenge',
allowed_routes: [
'/auth/mfa/recovery',
'/auth/mfa/challenge',
'/api/v1/auth/mfa/attempt',
'/auth/logout',
'/api/v1/auth/mfa/recovery/attempt',
'/api/v1/locale/batch',
],
},
},
}
module.exports = exports = traps_config