Install
Add the SDK to your project.
Verify: import resolves without errors
import { SDK } from '@bloque/sdk'
// No error = you're good
Configuration options
When you create an SDK instance, these are all the options available:
Auth strategies at a glance
The SDK supports three auth models — pick one based on where your code runs:
apiKey — for backend services. Uses a sk_live_ or sk_test_ secret key. The SDK auto-exchanges it for a short-lived JWT.
originKey — for backends that manage user identities directly. Registers and connects users into your Origin.
jwt — for browser and React Native apps where users authenticate directly.
Keep keys out of client-side code
Never expose sk_ or originKey values in browser or React Native code. Use environment variables on the backend.
What's next
→ Register — create identities in your Origin