f-23 / react-native-passkey

Passkeys for React Native
MIT License
135 stars 31 forks source link

NoCredentialException is thrown even though I have registered from credentials #36

Open sontungexpt opened 4 months ago

sontungexpt commented 4 months ago

image

{
  "allowCredentials": [], 
  "challenge": "0K0t3xRESM2s7ID6TZA==", 
  "extensions": {}, 
  "rpId": "aee2-14-169-47-244.ngrok-free.app", 
  "userVerification": "required"
}
f-23 commented 3 months ago

What platform does this happen on? What OS version are you using? Please provide more information on the issue.

KraljSamo commented 3 months ago

I am trying to implement this into base react native app. On IOS I managed to get it all working however on Android I do receive this error.

I can successfully register the credential, however when I try to authenticate, the request fails with the same error as above.

  "dependencies": {
    "axios": "^1.7.2",
    "base64url": "^3.0.1",
    "react": "18.2.0",
    "react-native": "0.74.3",
    "react-native-passkey": "^2.1.1"
  }, 

For Android testing I am using POCO F3 with OS Version 1.0.1.0.TKHEUXM and Android Version 13 TKQ1.221114.001

Edit: Updating to latest commit still did not resolve the issue. I dont have any other Android devices near me, so cant test somewhere else.

f-23 commented 2 months ago

@KraljSamo react-native-passkey 3.0.0-beta included an update for the native androidx.credentials library. Has your problem been resolved by now?

sirkostya009 commented 2 months ago

Unfortunately, this isn't a problem of this library itself, but rather of the nature of Android implementation. I consistently get this error whenever my assertion requests contain allowCredentials array. I suggest you try omitting it from your request and see if it would work then.