title: What are some options for logging into a react application from a different react application on another domain?
body: <p>I'm trying to create a user auth application that stores all of our user data and is then used to login to our various applications that we have created. We plan on really using this application as our user governance. But for now our other applications have their own logins.</p>
  <p>Currently we have a button for each application, when the button is clicked a new window for that application should open and the user should be logged in.</p>
  <p>The way I have started is by creating an api request to login route on the backend of the application being clicked. It works, but I don't know what to do with the information received. Our other application looks to local storage to see if there is a <code>'user'</code>, so the problem is getting the information received in the auth app to the local storage of the other app. I have tried using this <a href="https://www.npmjs.com/package/cross-domain-storage" rel="nofollow noreferrer">cross-domain-storage package</a> which utilizes the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/message_event" rel="nofollow noreferrer">Window: message event</a>  but I'm getting a bunch of errors, I don't think it's the correct way to go. I've considered implementing the Window: message event on my own, but again, I don't know if that's the correct way to go on this.</p>
  <p>I don't know if using the endpoint like I am doing is the correct way of doing this, if there are any other suggestions please let me know.</p>
  <p><a href="https://i.stack.imgur.com/Wgn5B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wgn5B.png" alt="auth app and application" /></a></p>