Skip to content

Commit c880081

Browse files
committed
Add missing totp cache logic
1 parent c83c6b1 commit c880081

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/auth/android/src/main/java/io/invertase/firebase/auth/ReactNativeFirebaseAuthModule.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,8 +1457,10 @@ public void generateTotpSecret(
14571457
task -> {
14581458
if (task.isSuccessful()) {
14591459
TotpSecret totpSecret = task.getResult();
1460+
String totpSecretKey = totpSecret.getSharedSecretKey();
1461+
mTotpSecrets.put(totpSecretKey, totpSecret);
14601462
WritableMap result = Arguments.createMap();
1461-
result.putString("secretKey", totpSecret.getSharedSecretKey());
1463+
result.putString("secretKey", totpSecretKey);
14621464
promise.resolve(result);
14631465
} else {
14641466
promiseRejectAuthException(promise, task.getException());

0 commit comments

Comments
 (0)