Skip to content

Funky Auth Timer #343

@n13

Description

@n13

Description:

Auth timer is funky

When we lock the app, we need to start the timer at that point.

What we currently do is, the timer starts from the last successful auth.

Steps:

  • Set auth timer to 1 minute
  • Use the app for 50 seconds
  • Background the app for 20 seconds
  • Come back to the app

Expected:

No authentication required, less than 1 minute away

Actual:

Auth screen pops up

Reason:

It's counting from the last successful authentication time, and not resetting this timer when we lock the app.

I tried to fix it but there's an issue it interferes with the immediate auth workaround we had to prevent infinite looping when auth is set to immediate. Maybe we should just make immediate 100ms and call it a day?

Infinite auth loop

This fixed infinite auth:
#308

Infinite auth in the case of auth timeout 0 was caused by the fact that the app is backgrounded by the FaceID overlay - so the auth user interface shown by the operating system backgrounds and foregrounds the app.

This is why we had an infinite loop of authentication happening.

We need to also keep this in mind.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions