Skip to content

Commit c03fb7b

Browse files
committed
Only log expiry time and failure
1 parent 1822c4e commit c03fb7b

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

core/network/src/main/java/com/android/developers/androidify/startup/FirebaseAppCheckInitializer.kt

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,13 @@ class FirebaseAppCheckInitializer : Initializer<FirebaseAppCheck> {
4949
}
5050
setTokenAutoRefreshEnabled(true)
5151
}
52-
if (!BuildConfig.DEBUG) {
53-
val token = appCheck.getAppCheckToken(false)
54-
token.addOnCompleteListener {
55-
if (token.isSuccessful) {
56-
Timber.i("Firebase app check token success: ${token.result.token}")
57-
Timber.i("Firebase app check token success: ${token.result.expireTimeMillis}")
58-
} else {
59-
Timber.e(token.exception, "Firebase app check token failure")
60-
}
52+
53+
val token = appCheck.getAppCheckToken(false)
54+
token.addOnCompleteListener {
55+
if (token.isSuccessful) {
56+
Timber.i("Firebase app check token success: ${token.result.expireTimeMillis}")
57+
} else {
58+
Timber.e(token.exception, "Firebase app check token failure")
6159
}
6260
}
6361
return appCheck

0 commit comments

Comments
 (0)