[PR #4800] [MERGED] feat(passkey): validate multiple passkey origins #13830

Closed
opened 2026-04-13 09:10:16 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4800
Author: @kevcube
Created: 9/21/2025
Status: Merged
Merged: 9/21/2025
Merged by: @Bekacru

Base: canaryHead: passkey_allow_origin_list


📝 Commits (1)

  • 6998c77 feat: validate multiple passkey origins

📊 Changes

1 file changed (+4 additions, -4 deletions)

View changed files

📝 packages/better-auth/src/plugins/passkey/index.ts (+4 -4)

📄 Description

In simplewebauthn, this can be string | string[], therefore we should allow the same.


Summary by cubic

Allow configuring multiple passkey origins by accepting string or string[] for PasskeyOptions.origin. This matches SimpleWebAuthn and enables validation across multiple domains while staying backward compatible with single-origin setups.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/4800 **Author:** [@kevcube](https://github.com/kevcube) **Created:** 9/21/2025 **Status:** ✅ Merged **Merged:** 9/21/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `passkey_allow_origin_list` --- ### 📝 Commits (1) - [`6998c77`](https://github.com/better-auth/better-auth/commit/6998c7715b0e18520cbdaa28ad8b2a3c38ab7124) feat: validate multiple passkey origins ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/passkey/index.ts` (+4 -4) </details> ### 📄 Description In simplewebauthn, this can be `string | string[]`, therefore we should allow the same. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Allow configuring multiple passkey origins by accepting string or string[] for PasskeyOptions.origin. This matches SimpleWebAuthn and enables validation across multiple domains while staying backward compatible with single-origin setups. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 09:10:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#13830