Add QR Code (Hybrid) Passkey Authentication Support #1165

Closed
opened 2026-03-13 08:26:07 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @archangelorum on GitHub (May 5, 2025).

Is this suited for github?

  • Yes, this is suited for github

Yes. BetterAuth lacks QR code (hybrid/cross-device) passkey authentication, limiting cross-device usability. Users can't sign in on a device without their passkey using a QR code scanned from another device.

Describe the solution you'd like

Implement QR code passkey authentication, following the WebAuthn hybrid transport pattern. When signing in on a device without a passkey, generate a QR code that can be scanned with a device holding the passkey, enabling secure cross-device authentication.

Describe alternatives you've considered

Alternatives are limited to passkey authentication only on devices where the passkey is available. Other options like passwords or SSO are less secure or don't solve the cross-device limitation.

Additional context

This feature aligns with WebAuthn standards for seamless, cross-device passwordless authentication.

Originally created by @archangelorum on GitHub (May 5, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Yes. BetterAuth lacks QR code (hybrid/cross-device) passkey authentication, limiting cross-device usability. Users can't sign in on a device without their passkey using a QR code scanned from another device. ### Describe the solution you'd like Implement QR code passkey authentication, following the WebAuthn hybrid transport pattern. When signing in on a device without a passkey, generate a QR code that can be scanned with a device holding the passkey, enabling secure cross-device authentication. ### Describe alternatives you've considered Alternatives are limited to passkey authentication only on devices where the passkey is available. Other options like passwords or SSO are less secure or don't solve the cross-device limitation. ### Additional context This feature aligns with WebAuthn standards for seamless, cross-device passwordless authentication.
Author
Owner

@dosubot[bot] commented on GitHub (Aug 4, 2025):

Hi, @archangelorum. I'm Dosu, and I'm helping the better-auth team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You requested adding QR code (hybrid) passkey authentication to BetterAuth for cross-device sign-in.
  • This would implement the WebAuthn hybrid transport standard to enable devices without passkeys to authenticate via another device.
  • The feature aims to improve usability and security beyond current device-limited passkey sign-ins.
  • There has been no further activity or comments on this issue since it was opened.

Next Steps:

  • Please let me know if this feature is still relevant to the latest version of BetterAuth by commenting on this issue.
  • If I do not hear back within 7 days, I will automatically close this issue.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 4, 2025): Hi, @archangelorum. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog and am marking this issue as stale. **Issue Summary:** - You requested adding QR code (hybrid) passkey authentication to BetterAuth for cross-device sign-in. - This would implement the WebAuthn hybrid transport standard to enable devices without passkeys to authenticate via another device. - The feature aims to improve usability and security beyond current device-limited passkey sign-ins. - There has been no further activity or comments on this issue since it was opened. **Next Steps:** - Please let me know if this feature is still relevant to the latest version of BetterAuth by commenting on this issue. - If I do not hear back within 7 days, I will automatically close this issue. Thank you for your understanding and contribution!
Author
Owner

@issam-seghir commented on GitHub (Sep 16, 2025):

We want this feature, as Passkey is currently limited in cross-platform capability

@issam-seghir commented on GitHub (Sep 16, 2025): We want this feature, as Passkey is currently limited in cross-platform capability
Author
Owner

@issam-seghir commented on GitHub (Sep 17, 2025):

@dosubot

@issam-seghir commented on GitHub (Sep 17, 2025): @dosubot
Author
Owner

@dosubot[bot] commented on GitHub (Sep 17, 2025):

QR code (hybrid/cross-device) passkey authentication isn't currently supported in better-auth. The passkey plugin and its documentation only cover standard WebAuthn flows for platform and cross-platform authenticators, without QR code generation or hybrid transport logic for cross-device authentication plugin code docs.

There is a related feature request for QR code login using a one-time token plugin, but this workaround doesn't provide secure passkey authentication across devices #2179.

To support QR code passkey authentication, new endpoints and logic would be needed: generating a QR code on the device without a passkey, scanning it with a device that holds the passkey, and securely completing the WebAuthn flow via hybrid transport. If you have specific requirements or ideas for the flow, sharing them could help shape future development. I'll track this request and provide updates if any progress is made.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

@dosubot[bot] commented on GitHub (Sep 17, 2025): <!-- Answer --> QR code (hybrid/cross-device) passkey authentication isn't currently supported in better-auth. The passkey plugin and its documentation only cover standard WebAuthn flows for platform and cross-platform authenticators, without QR code generation or hybrid transport logic for cross-device authentication [plugin code](https://github.com/better-auth/better-auth/blob/d1fe10962079c82920ea078a9847f65a59907b81/packages/better-auth/src/plugins/passkey/index.ts) [docs](https://github.com/better-auth/better-auth/blob/d1fe10962079c82920ea078a9847f65a59907b81/docs/content/docs/plugins/passkey.mdx). There is a related feature request for QR code login using a one-time token plugin, but this workaround doesn't provide secure passkey authentication across devices [#2179](https://github.com/better-auth/better-auth/issues/2179). To support QR code passkey authentication, new endpoints and logic would be needed: generating a QR code on the device without a passkey, scanning it with a device that holds the passkey, and securely completing the WebAuthn flow via hybrid transport. If you have specific requirements or ideas for the flow, sharing them could help shape future development. I'll track this request and provide updates if any progress is made. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/87f19659-b5df-49ba-b6d2-d3ba29487053?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/87f19659-b5df-49ba-b6d2-d3ba29487053?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/87f19659-b5df-49ba-b6d2-d3ba29487053?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/87f19659-b5df-49ba-b6d2-d3ba29487053?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/87f19659-b5df-49ba-b6d2-d3ba29487053?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/87f19659-b5df-49ba-b6d2-d3ba29487053?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/87f19659-b5df-49ba-b6d2-d3ba29487053?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/cdda13d9-dd27-4d31-b09a-5d8bec92de21/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/better-auth/better-auth/issues/2549)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#1165