[PR #1504] [MERGED] fix(oidc-plugin): sub is required /userinfo response #3834

Closed
opened 2026-03-13 11:16:26 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1504
Author: @runreal-warman
Created: 2/19/2025
Status: Merged
Merged: 2/20/2025
Merged by: @Bekacru

Base: mainHead: oidc-fixes-3


📝 Commits (1)

  • 27bebb4 fix(oidc-plugin): sub is required /userinfo response

📊 Changes

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

View changed files

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

📄 Description

The sub property is missing from the /userinfo response.

The sub (subject) Claim MUST always be returned in the UserInfo Response.
Reference: https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse


🔄 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/1504 **Author:** [@runreal-warman](https://github.com/runreal-warman) **Created:** 2/19/2025 **Status:** ✅ Merged **Merged:** 2/20/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `oidc-fixes-3` --- ### 📝 Commits (1) - [`27bebb4`](https://github.com/better-auth/better-auth/commit/27bebb4b78411e95bcdfeee701411920e58cad3f) fix(oidc-plugin): sub is required /userinfo response ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/oidc-provider/index.ts` (+1 -0) </details> ### 📄 Description The `sub` property is missing from the /userinfo response. `The sub (subject) Claim MUST always be returned in the UserInfo Response.` Reference: https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse --- <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-03-13 11:16:26 -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#3834