1 # smbcloud-auth-sdk-wasm
2
3 Wasm bindings for smbCloud Auth.
4
5 This crate is published as an npm package through `wasm-pack` and used by browser clients that need signup, sign-in, profile lookup, logout, and account deletion against smbCloud Auth.
6
7 ## Exports
8
9 - `signup_with_client`
10 - `login_with_client`
11 - `logout_with_client`
12 - `me_with_client`
13 - `remove_with_client`
14 - `Environment`
15
16 ## Build
17
18 ```bash
19 wasm-pack build --target web --release
20 ```
21
22 ## Browser usage
23
24 ```js
25 import init, {
26 Environment,
27 login_with_client,
28 signup_with_client,
29 } from "smbcloud-auth-sdk-wasm";
30
31 await init();
32
33 await signup_with_client(
34 Environment.Production,
35 "app-id",
36 "app-secret",
37 "name@example.com",
38 "password123",
39 );
40 ```
41
42 More browser SDK context is available in the [smbCloud docs](https://smbcloud.xyz/posts).
43
44 ## License
45
46 Apache-2.0
47
48 ## Copyright
49
50 © 2026 [Splitfire AB](https://5mb.app) ([smbCloud](https://smbcloud.xyz)).