KINDE_AUTH_WITH_PKCE on sveltekit throws error

Hi,
When trying to authenticate you'll get redirected to the callback url.
When the request hits the sveltekit server you'll find this error in the console:
error: {
      "errorCode": "INVALID_TOKEN_MEMORY_COMMIT",
      "name": "KindeSDKError",
      "originalLine": 28,
      "originalColumn": 28,
      "stack":
          KindeSDKError: Attempting to commit invalid access_token token "<redacted token>" to memory
              at new KindeSDKError (/sdk/exceptions.js:24:14)
              at <anonymous> (/sdk/utilities/token-utils.js:124:36)
              at step (/sdk/utilities/token-utils.js:86:23)
              at <anonymous> (/sdk/utilities/token-utils.js:25:71)
              at new Promise (:1:11)
              at __awaiter (/sdk/utilities/token-utils.js:7:34)
              at <anonymous> (/sdk/utilities/token-utils.js:145:32)
              at step (/sdk/utilities/token-utils.js:86:23)
              at <anonymous> (/sdk/utilities/token-utils.js:25:71)
              at new Promise (:1:11)
              at __awaiter (/sdk/utilities/token-utils.js:7:34)
              at <anonymous> (/sdk/oauth2-flows/AuthCodeAbstract.js:158:74)
              at step (/sdk/oauth2-flows/AuthCodeAbstract.js:97:23)
              at fulfilled (/sdk/oauth2-flows/AuthCodeAbstract.js:21:28)
              at processTicksAndRejections (:12:39)
    }
Was this page helpful?