feature/smbcloud-deploy
claude/smbcloud-github-app-k9641p
development
feature/apps
feature/build-release
feature/ci-docs
feature/ci-ruby-gems
feature/cicd
feature/completion
feature/dist-nuget
feature/fix-ci-sdk-pypi-rubygem
feature/fix-clippy-on-stable-channel
feature/fix-deployment-script
feature/github-email
feature/gresiq-v1
feature/project-new-structure
feature/rsync-deploy
feature/ruby-runner
feature/sdk-npm
feature/sdk-workflows
feature/smbcloud-cli-release-npm
feature/smbcloud-deploy
feature/wasm
main
release/v0.7.4
| 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 [smbCloud](https://smbcloud.xyz) (Splitfire AB). |