Is there a way to get OAuth.registerService to work without server restart?


HI, I need some help pls:

I need to be able to dynamically register new Oauth Providers (OAuth.registerService)

It seems to work service side. I insert new a new ServiceConfiguration.configurations.insert and call OAuth.registerService

If I restart the server all works fine… if I don’t when I try and loginWithService I get an error Unable to LoginServiceConfiguration.ConfigError: Service not configured

Again, all works fine after server restart… so is there a call or somethig I need to do to enable the provider without a service restart pls?

All help appreciated. Thanks.

Update: added actual error message