feature/sdk-workflows
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
smbCloud SDK Auth
Browser authentication SDK for smbCloud, built from Rust and WebAssembly.
About
·
Install
·
Usage
·
License
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
contract as desktop and mobile clients.
Current exported browser APIs include:
signup_with_clientlogin_with_clientlogout_with_clientme_with_clientremove_with_clientEnvironment
Install
npm install @smbcloud/sdk-auth
Usage
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",
"name@example.com",
"password123",
);
Local packaging
From sdk/npm/smbcloud-auth:
npm run prepare:package
npm run pack:dry-run
This builds the wasm crate, stages the generated artifacts into the npm package folder, and lets you verify the publish payload before release.
Explore more on the smbCloud Services page.
License
Apache-2.0
Copyright
© 2026 smbCloud (Splitfire AB).