SDKs & Libraries¶
Root Security provides official client libraries for multiple programming languages to make integration as simple as possible.
Available SDKs¶
Language | Package Manager | Installation |
---|---|---|
JavaScript | npm | npm install @root-security/auth |
Python | pip | pip install root-security |
Go | go | go get github.com/root-security/go-sdk |
Java | Maven | See Java SDK page |
Core Features¶
All our SDKs provide consistent functionality across platforms:
- User authentication (login, registration, password reset)
- Token management (JWT handling, refresh)
- Role-based access control
- Multi-factor authentication
- Social login integration
Example: JavaScript Authentication¶
import { RootSecurity } from '@root-security/auth';
// Initialize the client
const rootClient = new RootSecurity({
clientId: 'YOUR_CLIENT_ID',
domain: 'your-tenant.rootsecurity.com'
});
// Login with email and password
async function login() {
try {
const { user, token } = await rootClient.login({
email: 'user@example.com',
password: 'securePassword123'
});
console.log('Logged in user:', user);
localStorage.setItem('token', token);
} catch (error) {
console.error('Login failed:', error);
}
}
Community Libraries¶
We maintain a list of community-contributed libraries:
- Ruby SDK (maintained by community)
- PHP SDK (maintained by community)
- .NET SDK (maintained by community)
Support Policy¶
Our SDKs follow semantic versioning (MAJOR.MINOR.PATCH):
- MAJOR version changes include breaking API changes
- MINOR version changes add functionality in a backward-compatible manner
- PATCH version changes include backward-compatible bug fixes
We actively support the current and previous major versions of each SDK.