How to use ruby rails and node express

I'm doing a school web project and we are required to use omniauth for user authantication. I also want to use Nodejs express as the core/major part of my project. Is it possible to use rails for the auth part only and then use express for the rest? ...and if yes, how?