ory-kratos-client-wasm 0.2.2

A fork of ory-kratos-client that uses the browser's Fetch API instead of reqwest when building for wasm.
Documentation

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 API
  • worker, which uses Cloudflare's workers-rs Fetch API
  • 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:

ory-kratos-client-wasm = "0.2"

Using with WASM

For Cloudflare's workers-rs projects add the following line to your Cargo.toml:

ory-kratos-client-wasm = { version = "0.2", default-features = false, features = ["worker"] }

Using with reqwest

For feature parity with the official lib, add the following line to your Cargo.toml:

ory-kratos-client-wasm = { version = "0.2", default-features = false, features = ["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.

Official Kratos Documentation