UNPKG

elife

Version:

Express life // jump start your web application with express

16 lines (14 loc) 361 B
module.exports = { csrf : function(){ if($Session.get('csrf') != $Input.get($Environement.token)){ throw new Error(''); } }, auth : function(){ if(!$Auth.check()) { throw new Error('Required Authentification'); //or //res.redirect(url('/')); } } };