I'm trying to setup the supertokens backend in NestJS and can't figure out, where to put the `connec...
g
I'm trying to setup the supertokens backend in NestJS and can't figure out, where to put the
connectionURI
and
apiKey
So this part:
Copy code
ts
supertokens: {
        connectionURI: "http://localhost:3567",
        apiKey: "someKey" // OR can be undefined
    },
https://supertokens.com/docs/thirdparty/quick-setup/core/with-docker#connecting-the-backend-sdk-with-supertokens-
r
You need to put it when calling the supertokens.init function on the backend like:
Copy code
supertokens.init({
  appInfo: {..},
  supertokens: {connectionURI: "...", apiKey: "..."},
  recipeList: [...]
})
g
Yeah, and this is done here in the setup of NestJS, but where is the config set?
supertokens.service.ts
g
Nvm think I found it. It is here right?
r
yup
g
Thx
3 Views