[PR #2766] [MERGED] Add async support for custom user info claims #30076

Closed
opened 2026-04-17 21:15:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2766
Author: @zackify
Created: 5/23/2025
Status: Merged
Merged: 5/23/2025
Merged by: @Bekacru

Base: mainHead: patch-2


📝 Commits (2)

  • baa0951 Add async support for custom user info claims
  • 278458f Update index.ts

📊 Changes

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

View changed files

📝 packages/better-auth/src/plugins/oidc-provider/index.ts (+2 -2)

📄 Description

When getting custom claims,

for example using the stripe subscriptions handler with the oidcProvider

if i want to do a DB query or redis lookup of the subscription info, it does not work as we are not awaiting the promise here.


🔄 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/2766 **Author:** [@zackify](https://github.com/zackify) **Created:** 5/23/2025 **Status:** ✅ Merged **Merged:** 5/23/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `patch-2` --- ### 📝 Commits (2) - [`baa0951`](https://github.com/better-auth/better-auth/commit/baa0951f00e6c59fe30da0586a9cc939aa9cf095) Add async support for custom user info claims - [`278458f`](https://github.com/better-auth/better-auth/commit/278458f0808cf5e571f51e2ec722f815245a88fe) Update index.ts ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/oidc-provider/index.ts` (+2 -2) </details> ### 📄 Description When getting custom claims, for example using the stripe subscriptions handler with the oidcProvider if i want to do a DB query or redis lookup of the subscription info, it does not work as we are not awaiting the promise here. --- <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-17 21:15:58 -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#30076