ory-kratos-client-wasm
This is an unofficial Ory Kratos SDK for rust. Created to use the Fetch API instead of reqwest when building for wasm.
For the official crate, use ory-kratos-client.
API version: v25.4.0
Features
There are 3 features to pick from:
wasm, the default, which uses the browser's native Fetch APIworker, which uses Cloudflare's workers-rs Fetch API- For use with Cloudflare workers
reqwest, equivalent to the official crate with more up to date dependencies- Not for use with WASM
You should only use one feature per project.
Using with WASM
For WASM projects deployed in the browser add the following line to your Cargo.toml:
= "0.2"
Using with WASM
For Cloudflare's workers-rs projects add the following line to your Cargo.toml:
= { = "0.2", = false, = ["worker"] }
Using with reqwest
For feature parity with the official lib, add the following line to your Cargo.toml:
= { = "0.2", = false, = ["reqwest"] }
Ory Self-Hosted
This SDK is for use with self-hosted Ory Kratos. If you are developing against Ory Network, please use the Ory Network SDK.