Signin and signup with node.js and webix

Hello! Can you suggest the best way how to implement user login/authorization with the webix form widget? I’m trying to use node.js + mongo.db + expressJs (or Koa), and I think to use rest API, but I have no idea how to connect webix to all theese components with each other. I’m also tried to implement passportJS and JWT, but i think that i missed something. Maybe you can suggest good examples or basic principles how to do it with webix (without php, please).
P.s. Of course I saw good articles how to connect mongo.db, expressjs, passportJs and node.js, but in all variants I clashed in step, when we need to requre jade(or pug) or ejs view engine and to generate html on server side. If I miss this step (do not set default view engine - of course I catch a error and my app doesn’t start…
I hope for your help!
Thanks in andvance…

Send auth data to server. After login and password success validate, server create session key(token) and response with it. Save session key in localstorage. Assign every request header “Authorization” with key value. When the expiration date comes, update session key.