Prividium™ SDK
Get started with the Prividium™ SDK.
Unlike other Prividium™ components, the Prividium™ SDK is distributed under the MIT License.
The Prividium™ SDK is a TypeScript SDK for integrating with Prividium™'s authorization system. It provides a seamless authentication flow and secure RPC communication for applications running on a Prividium™, including:
- Popup-based OAuth Authentication
- JWT Token Management
- Viem Integration
- Proxy CLI for local authenticated JSON-RPC proxy
Security Considerations
- Token Storage: Tokens are stored in local storage by default. Developers may consider custom storage for sensitive applications.
- CSRF Protection: The OAuth state parameter provides CSRF protection during authentication flow.
- Token Expiration: The SDK automatically validates token expiration and clears expired tokens.
- Origin Validation: Popup messages are validated against the configured auth origin.