firebase-android-sdk icon indicating copy to clipboard operation
firebase-android-sdk copied to clipboard

[MFA] getEnrollmentTimestamp is returning 0

Open Lyokone opened this issue 3 years ago • 2 comments

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: 2021.2.1 Patch 2
  • Firebase Component: Auth
  • Component version: 30.3.0

[REQUIRED] Step 3: Describe the problem

When running getEnrollmentTimestamp(), the SDK is returning 0. When running the equivalent code on iOS the correct Timestamp is returned.

Steps to reproduce:

Run multiFactor.getEnrolledFactors(); and go through the results

Relevant Code:

if (info instanceof PhoneMultiFactorInfo) {
  final long a =  info.getEnrollmentTimestamp();

a should not be 0

Related issue https://github.com/firebase/flutterfire/issues/9354

Lyokone avatar Aug 17 '22 11:08 Lyokone

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Aug 17 '22 11:08 google-oss-bot

Hi @Lyokone, thanks for reporting. I was able to reproduce the same behavior. I'll notify our engineers and see what we can do here.

argzdev avatar Aug 18 '22 11:08 argzdev