Closed tkjwa closed 6 months ago
Also according to Snyk, axios version 0.27.2 have a high-severity security issue: https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
please upgrade to the latest version so @ory/sdk will not pop up in security scanning tools. Thanks
Seem like @ory/client still requires an old axios version. https://github.com/ory/sdk/blob/master/clients/client/typescript/package.json#L27
Updating would be a breaking change for users anyway, wouldn't it?
@SiebelsTim In 1.5.2 version of the client it uses a new version of axios.
Preflight checklist
Ory Network Project
No response
Describe your problem
Currently the JS sdk uses axios v0.27.2 which was released more than 2 years ago, current version is 1.6.2
Some types are not compatible between the 2 versions, so the following code will throw some compilation errors:
the compilation error:
from 0.27.2
from 1.6
Describe your ideal solution
Upgrade the axios version used by the sdk to the current version
Workarounds or alternatives
use a type assertion with unknown a make the compiler happy
Version
ory sdk v1.4.0
Additional Context
No response