Is there a chance of a non-axios client being rele...
# talk-kratos
a
Is there a chance of a non-axios client being released at some point? it's incompatible with Cloudflare workers
d
You could use OpenAPI generator to build your own SDK using one of the other typescript generators
eg
typescript-fetch
a
that's a great idea, ill try it tomorrow
thank you!
d
no worries.. here’s the script Ory use to generate their typescript sdk, I haven’t had a look at what options there are, but you can start by changing the generator used: https://github.com/ory/sdk/blob/master/scripts/generate.sh#L45
a
this worked beautifully. thank you so much!
on a side note, i think kratos should default to using fetch as it has consistent behavior in node and other runtimes, axios doesnt
s
You can override the axios adapter
a
wdym by that?
s
You can use fetch instead of xmlhttprequest for axios with that library