• f

    frederic

    1 year ago
    I followed the following page
  • f

    frederic

    1 year ago
    and was able to add the api key to the core server
  • f

    frederic

    1 year ago
    when I curl the version endpoint with the api key in the header
  • f

    frederic

    1 year ago
    I get the expected response
  • f

    frederic

    1 year ago
    the problem is the react node front end is not able to authenticate to the server when making requests
  • f

    frederic

    1 year ago
    I am not sure where I am meant to add the api key in the 'backend' config
  • f

    frederic

    1 year ago
    is there like an 'api-key' property under supertokens in the backendConfig?
  • r

    rp

    1 year ago
    @User , yes, you can add the API key like this (on the backend):
    supertokens.init({
        supertokens: {
          connectionURI: "<CONNECTION URI HERE>",
          apiKey: "<API  KEY HERE>"
       },
       appInfo: {...},
       recipeList: [...]
    });
  • f

    frederic

    1 year ago
    👍 Thanks very much for the quick response