[PR #2028] [MERGED] fix: type error #12374

Closed
opened 2026-04-13 08:20:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2028
Author: @hyoban
Created: 3/27/2025
Status: Merged
Merged: 3/27/2025
Merged by: @Bekacru

Base: mainHead: fix/03-28-type-error


📝 Commits (1)

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/index.ts (+2 -0)

📄 Description

close #2018

I got this when I built the type from the server code

CleanShot 2025-03-28 at 00 28 14@2x

It indeed uses OAuth2Tokens as the return type.

CleanShot 2025-03-28 at 00 29 32@2x

So I use the same method to fix it.


🔄 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/2028 **Author:** [@hyoban](https://github.com/hyoban) **Created:** 3/27/2025 **Status:** ✅ Merged **Merged:** 3/27/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/03-28-type-error` --- ### 📝 Commits (1) - [`40a4ce5`](https://github.com/better-auth/better-auth/commit/40a4ce5472504ceb0fc0a37a6d5381f724de9f1d) fix: type error ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/index.ts` (+2 -0) </details> ### 📄 Description close #2018 I got this when I built the type from the server code ![CleanShot 2025-03-28 at 00 28 14@2x](https://github.com/user-attachments/assets/c08b7049-2512-4947-8ee0-192c2674088a) It indeed uses OAuth2Tokens as the return type. ![CleanShot 2025-03-28 at 00 29 32@2x](https://github.com/user-attachments/assets/9075e27a-a2ae-4fcd-aa4e-4662bd90e91d) So I use the same method to fix it. --- <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 08:20:54 -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#12374