How do I export the configurations for Auth Providers?

I am using Strapi’s users-permissions Cognito provider. I enabled it added the client ID and secret and jwks URL and the rest, at the admin dashboard. In order to use this provider elsewhere, how do I write them in code, or can I add this config to Config Sync plugin?

I tried asking chatGPT and it told me to update the config/plugins.ts file but I found absolutely no information about it online. Isn’t this a thing that’s available in the Config Sync plugin?

This topic has been created from a Discord post (1269646143130697849) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

I solved this. Hence why I deleted the original message.

Exporting the provider config is impossible via Config-Sync as this config requires env variables.

Instead I configured them at the Strapi Bootstrap.
I used the Strapi core store to set the config via strapi.store({key: ‘grant’, …other stuff}) method. I don’t remember off the top of my head the other properties to be passed to the store but if someone wants it I’ll post it here :slightly_smiling_face:

Complete code example:

// ./src/index.ts

export default {
  register(strapi){/*...*/}
  bootstrap({strapi}) {
    const pluginStore = strapi.store({ type: 'plugin', name: 'users-permissions', key: 'grant' })
    const oldData = pluginStore.get()
    pluginStore.set({ value: {
      ...oldData,
      // New stuff here
    })
  }
}