Skip to content

Passkey sign-in doesn't work in the Electron desktop app (Bluetooth entitlement) #61

Description

@ankitsejwal

Ran into this while spiking the Electron desktop shell. Clerk loads fine in the renderer and email/password should work, but trying to sign in with a passkey just fails silently. The main process log gives it away:

FIDO: Cannot use Bluetooth because the responsible app for the process
does not have Bluetooth metadata in its Info.plist. Launch from Finder to fix.

So it's the cross-device passkey flow (the kind that talks to your phone over Bluetooth). macOS won't let the app touch Bluetooth unless the bundle declares it, and the bare electron . dev binary obviously doesn't. Not a Clerk problem.

Nothing to do right now — for the spike I'm just using email/password. But when we get to packaging the app we need to remember to:

  • add NSBluetoothAlwaysUsageDescription to the Info.plist (electron-builder mac.extendInfo)
  • give it the Bluetooth entitlement, and sign + notarize
  • then actually retest a passkey login in the real packaged build, not the dev binary

Leaving this here so it doesn't get lost. Came out of the desktop shell work (task #273).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions