corbado / flutter-passkeys

Easily provide passkey authentication based on FIDO2 / WebAuthn for Flutter apps (iOS & Android) via a dedicated Flutter package
https://www.corbado.com/passkeys/flutter
BSD 3-Clause "New" or "Revised" License
63 stars 29 forks source link

androidx.credentials.TYPE_SECURITY_ERROR when using example app #60

Closed briancorbin closed 6 months ago

briancorbin commented 7 months ago

Hey there, so I'm running in to an issue when running the example passkey native app in the repo on an android simulator. This is also the same as the error returned in my own application. Steps to reproduce:

  1. From packages/passkeys/passkeys directory, run melos run example-passkeys-native as instructed in the README
  2. Type in email address in the email address section
  3. click sign up

Returns error after a moment saying TYPE_SECURITY_ERROR The incoming request cannot be validated.

I have not modified any parts of the example application.

briancorbin commented 7 months ago

This happens both on physical device and on emulator

eimjustas commented 7 months ago

Having exactly the same issue on Android device.

OnePlus9, Android 14

image

incorbador commented 7 months ago

@briancorbin @eimjustas Hey guys, thanks for bringing this up. We fixed it now => examples should work again now.

In case you are interested about the root cause of the error: There was a misconfiguration on our side. The relying party ID got changed from flutter.corbado.io to corbado.io. This meant that Android (but also iOS devices) could no longer fetch assetlinks.json (or apple-app-site-association) files and the OS (in that case Android throws an exception).