How to share a vaadin session between multiple web applications (spring api

I have an existing Vaadin application and I want to write a new application with REST apis exposing data. I want single sign on between the two endpoints. How can I achieve this?

*Note - The application may or may not exist based on deployments, but I want my REST service to always exist.