How do I wait for ServiceConfigurtion Subs to complte


I need to wait for ServiceConfigurations to complete, so i can do a single sign-on… any idea on how to do that please?

There are some old issues like that mention Accounts.loginServiceConfigured but it does not seem to exist any more.