Here's the start of some work I did to allow the sync to be triggered when a user updates their profile or a new user is created. Ideally this would also remove the user_authenticated_hook from being triggered as it will not be needed anymore and move the code from user_authenticated_hook into a generic function instead but I left it for now so that if you don't want to use this method I can maintain the local changes without too much change to the core code. Feel free to close this one if you don't want to change to using this method! - thanks!
Here's the start of some work I did to allow the sync to be triggered when a user updates their profile or a new user is created. Ideally this would also remove the user_authenticated_hook from being triggered as it will not be needed anymore and move the code from user_authenticated_hook into a generic function instead but I left it for now so that if you don't want to use this method I can maintain the local changes without too much change to the core code. Feel free to close this one if you don't want to change to using this method! - thanks!