A sample user authentication service using rethinkdb and json web tokens