Skip to main content
Version: 0.1.0

Quick Start

1
Install
Add the SDK to your project
2
Initialize
Configure at app startup
3
Verify
Call verify() on sensitive actions

1. Install

npm install @surtai/guardian-rn
cd ios && pod install && cd ..

2. Initialize

App.tsx
import { GuardianProvider } from '@surtai/guardian-rn';

export default function App() {
return (
<GuardianProvider apiKey="YOUR_API_KEY" environment="production">
<Navigation />
</GuardianProvider>
);
}

3. Set Customer & Verify

LoginScreen.tsx
import { useGuardian } from '@surtai/guardian-rn';

function LoginScreen() {
const { verify, setCustomer } = useGuardian();

const handleLogin = async () => {
setCustomer('user_123', 'John Doe', 'john@example.com');

const result = await verify('login', 'User Login');

if (result.allowed) {
// Proceed
} else {
// Blocked - check result.riskLevel
}
};
}

Next Steps

Choose your platform for the full integration guide: