Skip to content

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

Merged
cy245 merged 1 commit into
android:mainfrom
task4233:fix-restore-credential-signin
Oct 9, 2026
Merged

cy245 merged 1 commit into
android:mainfrom
task4233:fix-restore-credential-signin

Conversation

@task4233

Copy link
Copy Markdown
Contributor

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

@cy245
cy245 merged commit 41aa9ca into android:main Oct 9, 2026
6 of 8 checks passed
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.

2 participants