[PR #4263] [MERGED] fix(oidc-provider): change updated_at to be a UNIX numeric timestamp #13528

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4263
Author: @ShobhitPatra
Created: 8/27/2025
Status: Merged
Merged: 11/13/2025
Merged by: @himself65

Base: canaryHead: fix/oidc-provider


📝 Commits (2)

  • d0258a2 fix(oidc): change updated_at to be a UNIX numeric timestamp
  • 878a3f7 fix: code

📊 Changes

2 files changed (+2 additions, -2 deletions)

View changed files

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

📄 Description

closes #4251

Reference : https://openid.net/specs/openid-connect-core-1_0-final.html#:~:text=updated.-,Its%20value%20is%20a%20JSON%20number%20representing%20the%20number%20of%20seconds%20from%201970%2D01%2D01T0:0:0Z%20as%20measured%20in%20UTC%20until%20the%20date/time.


Summary by cubic

Use a UNIX numeric timestamp (seconds since epoch) for the updated_at claim in OIDC and MCP, instead of an ISO string. This aligns with the OIDC Core spec and prevents client validation errors.

Written for commit 878a3f736f. 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/4263 **Author:** [@ShobhitPatra](https://github.com/ShobhitPatra) **Created:** 8/27/2025 **Status:** ✅ Merged **Merged:** 11/13/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `fix/oidc-provider` --- ### 📝 Commits (2) - [`d0258a2`](https://github.com/better-auth/better-auth/commit/d0258a26b50fb793c0909d055daa15b9b2badae2) fix(oidc): change updated_at to be a UNIX numeric timestamp - [`878a3f7`](https://github.com/better-auth/better-auth/commit/878a3f736f19b1bec26b1e447e52c9c44b3eb758) fix: code ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/mcp/index.ts` (+1 -1) 📝 `packages/better-auth/src/plugins/oidc-provider/index.ts` (+1 -1) </details> ### 📄 Description ### closes #4251 Reference : https://openid.net/specs/openid-connect-core-1_0-final.html#:~:text=updated.-,Its%20value%20is%20a%20JSON%20number%20representing%20the%20number%20of%20seconds%20from%201970%2D01%2D01T0:0:0Z%20as%20measured%20in%20UTC%20until%20the%20date/time. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Use a UNIX numeric timestamp (seconds since epoch) for the updated_at claim in OIDC and MCP, instead of an ISO string. This aligns with the OIDC Core spec and prevents client validation errors. <sup>Written for commit 878a3f736f19b1bec26b1e447e52c9c44b3eb758. 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-13 08:59:14 -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#13528