Skip to content

Configuration for iOS, specifically /.well-known/apple-app-site-association #229

@shinyford

Description

@shinyford

Hi. I'm developing an SDK for Clerk authentication services, and using passkeys to handle, well, passkeys.

Android works very well (for which thank you!) but I'm struggling to get iOS to work. Identical code to the Android version produces this error:

PlatformException(failed, No algorithms specified for ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest., , null)
flutter: #0      PasskeysApi.register (package:passkeys_darwin/messages.g.dart:322:7)
flutter: <asynchronous suspension>
flutter: #1      PasskeysDarwin.register (package:passkeys_darwin/passkeys_darwin.dart:31:15)
flutter: <asynchronous suspension>
flutter: #2      PasskeyAuthenticator.register (package:passkeys/authenticator.dart:59:17)

In addition, I'm seeing this message from the Doctor (always wanted to say that) when debugMode: true is passed:

[✖] AASA file check: Missing expected bundle ID "com.XXXXX" in applinks.details.appID from https://<API ALIAS>.clerk.accounts.dev/.well-known/apple-app-site-association

I can add a native app to my Clerk configuration happily, and see it in apple-app-site-association's webcredentials.apps list; however, Clerk does not seem to populate the applinks.details map (list of maps?) that passkeys expects.

So my questions are: does passkeys actually require that field to be present in the map to work; and if so, might that explain the exception thrown?

Many thanks

Nic Ford

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions