-
Notifications
You must be signed in to change notification settings - Fork 662
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
Use attestation on sign up screen #10037
Conversation
Diffuse output:
APK
DEX
|
|
||
when (lookupResult) { | ||
is LinkAuthResult.AttestationFailed -> { | ||
errorReporter.report( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should consider sending these analytics in LinkAuth
so that if we were to introduce new callers, our analytics would cover all places that attestation is done (instead of needing every caller to handle analytics themselves)
not blocking
viewModel.emailController.onRawValueChange("[email protected]") | ||
advanceTimeBy(SignUpViewModel.LOOKUP_DEBOUNCE + 1.milliseconds) | ||
|
||
assertThat(viewModel.state.value.signUpState).isEqualTo(SignUpState.InputtingRemainingFields) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to assert anything about an error being displayed in this case? I'd expect that if lookup fails, there's some indication of that to the user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't show an error in this case. I'll push an update
composeTestRule.waitForIdle() | ||
|
||
dispatcher.scheduler.advanceTimeBy(1001) | ||
onErrorSection().assertExists() // .assert(hasAnyChild(hasText("Something went wrong"))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onErrorSection().assertExists() // .assert(hasAnyChild(hasText("Something went wrong"))) | |
onErrorSection().assertExists() |
Summary
Use hardware attestation for sign up and lookup on the SignUpScreen. This PR also reintroduces email lookup.
Motivation
Testing
Screenshots
Simulates an attestation error on lookup
https://github.com/user-attachments/assets/6cc9167c-a121-44e8-875f-e9d6f34adfa4
Simulates attestation error on signup
https://github.com/user-attachments/assets/362983be-9da6-4f1b-8a15-ddfd0e05d3ab
Changelog