Nodejs Restful Auth

I'm new with Nodejs and I'm doing a restful server with restify. So, I have a scenario that I have many devices (with unique id) updating data through rest. What I want to do is authenticate them and give a auth token. Something like this:

First time: uri/api/auth -> get Token.

Then: uri/api/product/.... -> with token and updating product

I tried to use restify-node-token but I have no success.

http://passportjs.org/

This is a library for express.js, but I've very powerful. I'd suggest you'd give it a look. Setting up what you have already with express.js would take very little work.