Skip to content

Commit

Permalink
fix: Add fixes for integration into OL (#95)
Browse files Browse the repository at this point in the history
* feat: Add functionality for the FirebaseAppCheck call

* fix: Remove unused import

* fix: Add fixes for integration into OL

- remove protected declaration as it will not allow for it to
be used within the OL impl of AppIntegrity
- make getAppCheckToken suspend function to allow for the impl to await
for the reponse from Firebase
  • Loading branch information
BiancaMihaila authored Nov 5, 2024
1 parent 69948e1 commit 3a23dfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import uk.gov.android.authentication.integrity.model.AppCheckToken
interface AppChecker {
fun init(context: Context)

fun getAppCheckToken(): Result<AppCheckToken>
suspend fun getAppCheckToken(): Result<AppCheckToken>
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 3a23dfa

Please sign in to comment.