[PR #4527] [MERGED] fix(paypal): use base64.encode #13674

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4527
Author: @himself65
Created: 9/8/2025
Status: Merged
Merged: 9/8/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/09/08/base64


📝 Commits (1)

  • 58689ef fix(paypal): use base64.encode

📊 Changes

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

View changed files

📝 packages/better-auth/src/social-providers/paypal.ts (+5 -4)

📄 Description

Summary by cubic

Replace Node Buffer usage with base64.encode for PayPal OAuth Basic Auth credentials to remove Node-only dependency and prevent runtime errors in edge/browser runtimes. Applies to both token exchange and refresh flows.

  • Bug Fixes
    • Use @better-auth/utils/base64.encode to generate Basic auth credentials for PayPal token requests.
    • Updated both access token exchange and refresh paths.

🔄 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/4527 **Author:** [@himself65](https://github.com/himself65) **Created:** 9/8/2025 **Status:** ✅ Merged **Merged:** 9/8/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/09/08/base64` --- ### 📝 Commits (1) - [`58689ef`](https://github.com/better-auth/better-auth/commit/58689ef1c7d9d3a0da58ac59b254e09dfb8cc245) fix(paypal): use `base64.encode` ### 📊 Changes **1 file changed** (+5 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/social-providers/paypal.ts` (+5 -4) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Replace Node Buffer usage with base64.encode for PayPal OAuth Basic Auth credentials to remove Node-only dependency and prevent runtime errors in edge/browser runtimes. Applies to both token exchange and refresh flows. - **Bug Fixes** - Use @better-auth/utils/base64.encode to generate Basic auth credentials for PayPal token requests. - Updated both access token exchange and refresh paths. <!-- 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:04:06 -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#13674