To log a user into a different domain or run as a specific user, follow these steps:
-
Create a custom event that generates a magic link using the current user's email.
-
Utilize the CoAlias plugin to modify the magic link's domain to the desired white-label domain.
-
Redirect the user to the new link to log them in.
This workflow provides flexibility in managing user logins across different domains. You can find a example on this page and you can look at the green event inside the editor.