InvalidProjectConfig

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

  1. Verify credentials: Check organization ID and project ID in TrustPin dashboard

  2. Validate public key: Ensure proper base64 encoding without extra characters

  3. Check formatting: Remove any whitespace, newlines, or special characters

  4. 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")
}

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
open val message: String?
Link copied to clipboard
Link copied to clipboard