mittleware to manage protected pages in nodejs (or just manage normal pages^^) - not perfect, but works for me