[PR #6199] [MERGED] fix(passkey): change generate-authenticate-options from POST to GET #14762

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6199
Author: @mburumaxwell
Created: 11/22/2025
Status: Merged
Merged: 11/22/2025
Merged by: @Bekacru

Base: canaryHead: fix/passkey-generate-authenticate-options-method


📝 Commits (1)

  • 3acedfd fix(passkey): change generate-authenticate-options from POST to GET

📊 Changes

2 files changed (+2 additions, -2 deletions)

View changed files

📝 packages/passkey/src/client.ts (+1 -1)
📝 packages/passkey/src/index.ts (+1 -1)

📄 Description

Fixes #6197

Changes

  • Changed /passkey/generate-authenticate-options from POST to GET method
  • Updated both server endpoint definition and client implementation

Reason

The better-call upgrade (v1.0.19 → v1.1.0) introduced Content-Type validation for POST requests. Since this endpoint doesn't accept a body, using GET is semantically correct and matches the pattern used by /passkey/generate-register-options.


Summary by cubic

Switch /passkey/generate-authenticate-options from POST to GET to fix Content-Type validation errors in better-call v1.1.0 when no body is sent. Updates both the server endpoint and client call, and matches /passkey/generate-register-options.

Written for commit 3acedfd316. Summary will update automatically on new commits.


🔄 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/6199 **Author:** [@mburumaxwell](https://github.com/mburumaxwell) **Created:** 11/22/2025 **Status:** ✅ Merged **Merged:** 11/22/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/passkey-generate-authenticate-options-method` --- ### 📝 Commits (1) - [`3acedfd`](https://github.com/better-auth/better-auth/commit/3acedfd316fd9cd015c6b6c7ed9297c64563e94d) fix(passkey): change `generate-authenticate-options` from POST to GET ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/passkey/src/client.ts` (+1 -1) 📝 `packages/passkey/src/index.ts` (+1 -1) </details> ### 📄 Description Fixes #6197 ## Changes - Changed `/passkey/generate-authenticate-options` from POST to GET method - Updated both server endpoint definition and client implementation ## Reason The `better-call` upgrade (v1.0.19 → v1.1.0) introduced `Content-Type` validation for POST requests. Since this endpoint doesn't accept a body, using GET is semantically correct and matches the pattern used by `/passkey/generate-register-options`. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Switch /passkey/generate-authenticate-options from POST to GET to fix Content-Type validation errors in better-call v1.1.0 when no body is sent. Updates both the server endpoint and client call, and matches /passkey/generate-register-options. <sup>Written for commit 3acedfd316fd9cd015c6b6c7ed9297c64563e94d. Summary will update automatically on new commits.</sup> <!-- 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:37:37 -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#14762