Reload OAuth Client Secrets Programatically?

I am generating an auth Apple client secret but want to set it without restarting the server. Completly.

Sadly extensions are loaded after the oauth clients are created so I can’t even set the env variable progrmatically. Any idea how to solve this?

The OAuth secrets are loaded on startup from the environment variables, which isn’t dynamically reloaded at any point afterwards. As of right now, restarting the Directus server after changing the env vars is the only way to update the OAuth secrets. I’ve jotted down your comment as a feature request on our end so we can consider this to be added later. Thanks!

Thank you very much. I think another tightly connected feature would be to automatically generate the apple client secret (with team_id, key_id, key_content). But this is something which an extension could do (and to reload the Oauth clients).