How to keep users logged between Ionic apps?

I have two Ionic apps. Each app has its own backend and its own database.
Now, if I if I find a way to register users on both backends, is there a way to make sure that if a user authenticates on app 1 he is also logged in on app1 and vice versa ?
Is there a smart way to make this?
Thank you