I must transfer data between two Angular applications that are installed on different domains because of a necessity. Allow me to illustrate with an example:
For example, suppose App1 is available at https://app1.com and App2 is available at https://app2.com.
I utilize App1 for authentication, and after the user logs in successfully, I have to send them to App2 so they may do some tasks there.
Without utilizing the query parameters, I must pass the token from App1 to App2.
Is there a way to make this happen? I've read other such questions on Stackoverflow, but they weren't answered.
I think you can do that with a 'Factory function' in your provider (https://angular.io/api/core/FactoryProvider) at app.modules and 'canActivate' in your routes (https://angular.io/api/router/CanActivate) with AuthGuard. The asnwer is not complete but It might help :D