1 # smbcloud-auth-sdk
2
3 Client SDK for [smbCloud Auth](https://smbcloud.xyz/) — lets you authenticate your users against the smbCloud Auth service using your app credentials (`client_id` / `client_secret`).
4
5 ## Usage
6
7 ```rust
8 use smbcloud_auth_sdk::{
9 client_credentials::ClientCredentials,
10 login::login_with_client,
11 signup::signup_with_client,
12 me::me_with_client,
13 };
14 use smbcloud_network::environment::Environment;
15
16 let client = ClientCredentials {
17 app_id: "your-app-id",
18 app_secret: "your-app-secret",
19 };
20
21 // Sign up
22 let result = signup_with_client(Environment::Production, client, email, password).await?;
23
24 // Sign in
25 let status = login_with_client(Environment::Production, client, email, password).await?;
26
27 // Profile
28 let user = me_with_client(Environment::Production, client, &access_token).await?;
29 ```
30
31 > Explore more on the [smbCloud Services](https://smbcloud.xyz/services) page.
32
33 ## License
34
35 Apache-2.0
36
37 ## Copyright
38
39 © 2026 [smbCloud](https://smbcloud.xyz) (Splitfire AB).