Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2FA / OTP code does not update when app is in background #3157

Open
1 task
sh4dowb opened this issue Apr 15, 2024 · 3 comments
Open
1 task

2FA / OTP code does not update when app is in background #3157

sh4dowb opened this issue Apr 15, 2024 · 3 comments
Labels

Comments

@sh4dowb
Copy link

sh4dowb commented Apr 15, 2024

Steps To Reproduce

  1. Open Bitwarden, choose a login
  2. Go back to another app, such as web browser
  3. Wait about 30 seconds, so that OTP expires
  4. Go back to Bitwarden in the background

Expected Result

New OTP code should be displayed

Actual Result

Previous OTP code (when app was last put to background) is displayed

Screenshots or Videos

No response

Additional Context

After switching back to Bitwarden, if you wait until OTP expires (again), the refreshed OTP code is correct.
A possible fix could be, force refreshing the OTP when app is "waken up(?)", since it's a lightweight operation

Operating System

iOS

Operating System Version

17.4.1

Device

iPhone 14

Build Version

2024.3.3 (7191)

Beta

  • Using a pre-release version of the application.
@sh4dowb sh4dowb added the bug label Apr 15, 2024
@NovaSilentium
Copy link

Hi there,

I am unable to reproduce this issue, it has been escalated for further investigation. If you have more information that can help us, please add it below.

Thanks!

@sh4dowb
Copy link
Author

sh4dowb commented Apr 15, 2024

Hi there,

I am unable to reproduce this issue, it has been escalated for further investigation. If you have more information that can help us, please add it below.

Thanks!

IMG_6307.MP4

Here is a screen recording of the problem

@sh4dowb
Copy link
Author

sh4dowb commented Apr 15, 2024

In the source, I see that OnDisappearing() event calls _vm.StopCiphersTotpTick()
And LoadAsync() in CipherDetailsPageViewModel.cs calls TimerTask(..,StartCiphersTotpTick,..).RunPeriodic();
Not very experienced in Xamarin, but I think somewhere around LoadAsync() / timer creation or cancellation should be looked at, hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants