@smbcloud/sdk-auth
v0.4.0
Published
Browser Auth SDK for smbCloud, built from Rust and WebAssembly.
Readme
About
@smbcloud/sdk-auth is the browser SDK for smbCloud Auth. It wraps the shared Rust auth crate through WebAssembly so browser apps can use the same auth API as other smbCloud clients.
Current exported browser APIs include:
signup_with_clientlogin_with_clientlogout_with_clientme_with_clientremove_with_clientEnvironment
Install
npm install @smbcloud/sdk-authUsage
import init, {
Environment,
login_with_client,
signup_with_client,
} from "@smbcloud/sdk-auth";
await init();
await signup_with_client(
Environment.Production,
"app-id",
"app-secret",
"[email protected]",
"password123",
);Local packaging
From sdk/npm/smbcloud-auth:
npm run prepare:package
npm run pack:dry-runThis builds the wasm crate, stages the generated artifacts into the npm package folder, and lets you check the publish payload before release.
More browser and platform docs live in the smbCloud developer docs.
License
Apache-2.0
Copyright
© 2026 smbCloud (Splitfire AB).
