[PR #6130] [MERGED] Fix OpenID token expiration to correctly use seconds from config #40776

Closed
opened 2026-04-23 13:35:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/6130
Author: @dnitros
Created: 11/12/2025
Status: Merged
Merged: 11/12/2025
Merged by: @matt-fidd

Base: masterHead: master


📝 Commits (2)

  • 1bacdf3 fix: correct token expiry to use seconds per documentation
  • d3646ad revert token expiry fallback

📊 Changes

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

View changed files

📝 packages/sync-server/src/accounts/openid.js (+2 -2)
upcoming-release-notes/6130.md (+6 -0)

📄 Description

The current logic is assuming the token_expiration value to be in minutes and multiplying with 60 to convert into seconds.

As per the documentation the value is in seconds.


🔄 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/actualbudget/actual/pull/6130 **Author:** [@dnitros](https://github.com/dnitros) **Created:** 11/12/2025 **Status:** ✅ Merged **Merged:** 11/12/2025 **Merged by:** [@matt-fidd](https://github.com/matt-fidd) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`1bacdf3`](https://github.com/actualbudget/actual/commit/1bacdf389c916ef4d84f05faa1326c550770ee2d) fix: correct token expiry to use seconds per documentation - [`d3646ad`](https://github.com/actualbudget/actual/commit/d3646ad5a48adcbec905ac09864bf98c4c8f94d1) revert token expiry fallback ### 📊 Changes **2 files changed** (+8 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/sync-server/src/accounts/openid.js` (+2 -2) ➕ `upcoming-release-notes/6130.md` (+6 -0) </details> ### 📄 Description <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes. Try running yarn generate:release-notes *before* pushing your PR for an interactive experience. --> The current logic is assuming the `token_expiration` value to be in minutes and multiplying with 60 to convert into seconds. As per the [documentation](https://actualbudget.org/docs/config/oauth-auth#actual_token_expiration) the value is in seconds. --- <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-23 13:35:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#40776