Skip to content

fix: Accept RestoreCredential in the sign-in type check - #223

Open
task4233 wants to merge 1 commit into
android:mainfrom
task4233:fix-restore-credential-signin
Open

task4233 wants to merge 1 commit into
android:mainfrom
task4233:fix-restore-credential-signin

Conversation

@task4233

Copy link
Copy Markdown

WHY

Since RestoreCredential and PublicKeyCredential are sibling subclasses of Credential, the restore branch nested inside if (credential is PublicKeyCredential) is unreachable: the retrieved assertion is never sent to the relying party and the call fails silently with
AuthResult.Failure(AuthError.Unknown(null)).

WHAT

This PR makes the check accept RestoreCredential. I've confirmed the behavior on a Pixel 8a, as the attached capture shows: POST /webauthn/signinResponse returns 200 and the app reaches the home screen with no interaction, where before only signinRequest was sent.

selfqa2_trimmed_1.5x.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant