Invalid Project Config
Thrown when the project configuration is invalid or incomplete.
This error occurs when the setup parameters provided to TrustPin.setup are invalid, missing, or incorrectly formatted.
Common Causes
Empty or whitespace-only organization ID, project ID, or public key
Invalid base64 encoding in the public key
Incorrect credential format or structure
Network connectivity issues during credential validation
Resolution Steps
Verify credentials: Check organization ID and project ID in TrustPin dashboard
Validate public key: Ensure proper base64 encoding without extra characters
Check formatting: Remove any whitespace, newlines, or special characters
Test connectivity: Verify network access to TrustPin service
Example
val trustPin = TrustPin.initialize()
try {
trustPin.setup(
organizationId = "org-123",
projectId = "project-456",
publicKey = "LS0tLS1CRUdJTi...",
mode = TrustPinMode.STRICT
)
} catch (e: TrustPinError.InvalidProjectConfig) {
println("Invalid credentials - check TrustPin dashboard")
}Content copied to clipboard