- Created SelfFreezoneClient in Self components
- Wraps SDK FreezoneScriptClient for Self-specific operations
- Implements send_verification_email method
- Uses Rhai script template for email verification
- Includes template variable substitution
- Added serde-wasm-bindgen dependency
Usage:
let client = SelfFreezoneClient::builder()
.supervisor_url("http://localhost:8080")
.secret("my-secret")
.build()?;
client.send_verification_email(
"user@example.com",
"123456",
"https://verify.com/abc"
).await?;
19 lines
426 B
TOML
19 lines
426 B
TOML
[package]
|
|
name = "self-app"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
self-components = { path = "../components" }
|
|
yew = { workspace = true, features = ["csr"] }
|
|
yew-router = "0.18"
|
|
wasm-bindgen = { workspace = true }
|
|
wasm-bindgen-futures = { workspace = true }
|
|
web-sys = { workspace = true }
|
|
js-sys = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|