diff --git a/app/src/main/java/uk/gov/android/authentication/integrity/appcheck/AppChecker.kt b/app/src/main/java/uk/gov/android/authentication/integrity/appcheck/AppChecker.kt index ad3eefa..e0b5f14 100644 --- a/app/src/main/java/uk/gov/android/authentication/integrity/appcheck/AppChecker.kt +++ b/app/src/main/java/uk/gov/android/authentication/integrity/appcheck/AppChecker.kt @@ -6,5 +6,5 @@ import uk.gov.android.authentication.integrity.model.AppCheckToken interface AppChecker { fun init(context: Context) - fun getAppCheckToken(): Result + suspend fun getAppCheckToken(): Result } diff --git a/app/src/main/java/uk/gov/android/authentication/integrity/usecase/AttestationCaller.kt b/app/src/main/java/uk/gov/android/authentication/integrity/usecase/AttestationCaller.kt index a86d7f7..220f6f1 100644 --- a/app/src/main/java/uk/gov/android/authentication/integrity/usecase/AttestationCaller.kt +++ b/app/src/main/java/uk/gov/android/authentication/integrity/usecase/AttestationCaller.kt @@ -11,6 +11,6 @@ fun interface AttestationCaller { data class Response(val jwt: String, val expiresIn: Long) companion object { - protected const val FIREBASE_HEADER = "X-Firebase-AppCheck" + const val FIREBASE_HEADER = "X-Firebase-AppCheck" } }