From 6f071e78f44f23da4af3491a5824d6ed678a7ddd Mon Sep 17 00:00:00 2001 From: task4233 <29667656+task4233@users.noreply.github.com> Date: Sun, 13 Sep 2026 22:01:00 +0900 Subject: [PATCH] fix: Accept RestoreCredential in the sign-in type check --- .../java/com/authentication/shrine/repository/AuthRepository.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shrine/app/src/main/java/com/authentication/shrine/repository/AuthRepository.kt b/Shrine/app/src/main/java/com/authentication/shrine/repository/AuthRepository.kt index b3c181a7..858f208e 100644 --- a/Shrine/app/src/main/java/com/authentication/shrine/repository/AuthRepository.kt +++ b/Shrine/app/src/main/java/com/authentication/shrine/repository/AuthRepository.kt @@ -332,7 +332,7 @@ class AuthRepository @Inject constructor( suspend fun signInWithPasskeyOrPasswordResponse(credentialResponse: GetCredentialResponse): AuthResult { return try { val credential = credentialResponse.credential - if (credential is PublicKeyCredential) { + if (credential is PublicKeyCredential || credential is RestoreCredential) { val signInResponse = credential.data.getString( if (credential.type == RestoreCredential.TYPE_RESTORE_CREDENTIAL) {