[GH-ISSUE #1440] Name of Device used to generate Passkey #17387

Closed
opened 2026-04-15 15:31:28 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @thedamod on GitHub (Feb 14, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1440

How do I get the name of the decide which was used to generate the passkey? I have tried using the deviceType but it returns singleDevice

Originally created by @thedamod on GitHub (Feb 14, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1440 How do I get the name of the decide which was used to generate the passkey? I have tried using the `deviceType` but it returns `singleDevice`
GiteaMirror added the locked label 2026-04-15 15:31:28 -05:00
Author
Owner

@thedamod commented on GitHub (Feb 20, 2025):

Closing this issue because I got it after reading through the docs. Sorry of the inconvenience.
For anyone who encounters a similar issue this is what I did

    passkey
      .addPasskey({
        name: parseUserAgent(navigator.userAgent),
      })
<!-- gh-comment-id:2671446460 --> @thedamod commented on GitHub (Feb 20, 2025): Closing this issue because I got it after reading through the docs. Sorry of the inconvenience. For anyone who encounters a similar issue this is what I did ```ts passkey .addPasskey({ name: parseUserAgent(navigator.userAgent), }) ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#17387