Getting "invalid_client_metadata"

Hello :wave: We were having no problem with our integration on a nestjs app, when all of a sudden we started getting the following error:

OPError: invalid_client_metadata (Client id cannot be set when registering a client)

Here is a screenshot of the error:

We are using @forestadmin/agent 1.0.0-beta.56 and to initialize forest we do the following:

      this.instance = createAgent({
        envSecret: process.env.FOREST_ENV_SECRET as string,
        authSecret: process.env.FOREST_AUTH_SECRET as string,
        agentUrl: process.env.FOREST_AGENT_URL as string,
        isProduction: process.env.NODE_ENV === 'production',
        schemaPath: process.env.FOREST_FILE,
      });

Any ideas on what Client ID refers to?

Hi @ro_puente :wave:,

I see there is a warning just before could you please show it ?
And do you have multiple instances of your app ?

Hello @ro_puente,

At first glance, I don’t know what is happening. The Client ID refers to OpenId connect authentication standard, it’s simply a public identifier for your forest app authentication system.

We release a stable version 1 since then. I recommend you upgrade to this new version that is more stable (as it isn’t a beta version anymore).

Let me know if it helps. :pray:

Kind regards,
Morgan