Get Started with Grantiva
Set up your account in minutes and start securing your iOS app with Apple App Attest.
Create Your Account
Select your plan and get instant access to our API.
Quick Integration Preview
See how easy it is to integrate Grantiva into your iOS app
1. iOS App Integration
import DeviceCheck
// Generate attestation
let service = DCAppAttestService.shared
let keyId = try await service.generateKey()
let challenge = try await fetchChallenge()
let attestation = try await service.attestKey(
keyId,
clientDataHash: challenge.hash
)
// Send to Grantiva
let response = try await validateAttestation(
keyId: keyId,
attestation: attestation,
challenge: challenge.value
)
2. Server Response
{
"token": "eyJ0eXAiOiJKV1QiLCJhbGc...",
"deviceIntelligence": {
"riskScore": 15,
"deviceIntegrity": "high",
"jailbreakDetected": false
},
"permissions": [
"basic", "payments", "transfers"
],
"expiresAt": "2024-01-01T12:00:00Z"
}