Openid_connect: add provider while application is running

Hello everyone :slight_smile:
We have an elixir application which uses openid_connect library to authenticate the project.
The providers against the users are authenticated are Keycloak realms, and these Keycloak realms can be created while the elixir application is running.
Now we have the problem that when a new Keycloak realm is created, then the elixir application does not recognize it as a new provider because the list of the available providers can only be issued at the start of the OpendIDConnect.Worker.

Is there a way to refresh this providers list while the worker is running?

I found Assent works well for dynamically configured OpenID Connect.

https://hexdocs.pm/assent/Assent.Strategy.OIDC.html