Using omniauth in single-page apps