[PR #6942] [MERGED] chore(sso): remove Buffer usage #23881

Closed
opened 2026-04-15 22:02:20 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6942
Author: @himself65
Created: 12/23/2025
Status: Merged
Merged: 12/23/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/12/23/no-buffer


📝 Commits (1)

  • 1cb7400 chore(sso): remove Buffer usage

📊 Changes

4 files changed (+69 additions, -16 deletions)

View changed files

📝 biome.json (+47 -1)
📝 packages/sso/package.json (+2 -1)
📝 packages/sso/src/routes/sso.ts (+7 -6)
📝 pnpm-lock.yaml (+13 -8)

📄 Description

Summary by cubic

Replaced Buffer usage in SSO SAML handlers with TextDecoder and @better-auth/utils/base64 for better cross-runtime compatibility. Added lint rules to block Buffer in src and updated dependencies.

  • Refactors

    • Decode SAMLResponse using base64.decode + TextDecoder instead of Buffer.from(...).toString("utf-8").
    • Enforce Biome rules to forbid Buffer type/global in packages//src/; tests are exempt.
  • Dependencies

    • Added @better-auth/utils@0.3.0 for base64 utilities.

Written for commit 1cb740050f. 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/6942 **Author:** [@himself65](https://github.com/himself65) **Created:** 12/23/2025 **Status:** ✅ Merged **Merged:** 12/23/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/12/23/no-buffer` --- ### 📝 Commits (1) - [`1cb7400`](https://github.com/better-auth/better-auth/commit/1cb740050f120c1737274d61d14478ed43efca72) chore(sso): remove `Buffer` usage ### 📊 Changes **4 files changed** (+69 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `biome.json` (+47 -1) 📝 `packages/sso/package.json` (+2 -1) 📝 `packages/sso/src/routes/sso.ts` (+7 -6) 📝 `pnpm-lock.yaml` (+13 -8) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Replaced Buffer usage in SSO SAML handlers with TextDecoder and @better-auth/utils/base64 for better cross-runtime compatibility. Added lint rules to block Buffer in src and updated dependencies. - **Refactors** - Decode SAMLResponse using base64.decode + TextDecoder instead of Buffer.from(...).toString("utf-8"). - Enforce Biome rules to forbid Buffer type/global in packages/**/src/**; tests are exempt. - **Dependencies** - Added @better-auth/utils@0.3.0 for base64 utilities. <sup>Written for commit 1cb740050f120c1737274d61d14478ed43efca72. 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-15 22:02:20 -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#23881