[PR #5759] fix(oauth): redirect to GET for POST method #14452

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

Original Pull Request: https://github.com/better-auth/better-auth/pull/5759

State: closed
Merged: Yes


Summary by cubic

Fixes OAuth callbacks that arrive as POST by redirecting them to GET so cookies are sent and sessions are preserved. Also enables Apple Sign In in the demo.

  • Bug Fixes

    • Redirect POST callbacks to GET with the same params (code, error, device_id, error_description, state, user).
    • Avoids missing cookies on POST, which broke some provider flows.
  • New Features

Written for commit 25bb400616. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5759 **State:** closed **Merged:** Yes --- <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fixes OAuth callbacks that arrive as POST by redirecting them to GET so cookies are sent and sessions are preserved. Also enables Apple Sign In in the demo. - **Bug Fixes** - Redirect POST callbacks to GET with the same params (code, error, device_id, error_description, state, user). - Avoids missing cookies on POST, which broke some provider flows. - **New Features** - Demo: trust https://appleid.apple.com. - Demo: add APPLE_CLIENT_ID and APPLE_CLIENT_SECRET to turbo env passthrough. <sup>Written for commit 25bb4006165d2abe4cc1380523a1a95d2536fbf6. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:28:52 -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#14452