[PR #4768] [MERGED] fix: wrap Math.floor around the division when calculating TTL #31172

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4768
Author: @DevDuki
Created: 9/19/2025
Status: Merged
Merged: 9/19/2025
Merged by: @himself65

Base: canaryHead: fix/round-down-ttl-after-dividing-it


📝 Commits (4)

  • c111728 fix: Wrap Math.floor around the division when calculating TTL for secondary storage
  • 7f8e80c chore: lint
  • 6d79554 test: add
  • 3d394ab Merge branch 'canary' into fix/round-down-ttl-after-dividing-it

📊 Changes

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

View changed files

📝 packages/better-auth/src/db/internal-adapter.test.ts (+150 -0)
📝 packages/better-auth/src/db/internal-adapter.ts (+3 -1)

📄 Description

For more context see this thread in discord:
https://discord.com/channels/1288403910284935179/1418569936204468255


🔄 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/4768 **Author:** [@DevDuki](https://github.com/DevDuki) **Created:** 9/19/2025 **Status:** ✅ Merged **Merged:** 9/19/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `fix/round-down-ttl-after-dividing-it` --- ### 📝 Commits (4) - [`c111728`](https://github.com/better-auth/better-auth/commit/c111728c17db347301c25f91ad01b748c397fb7f) fix: Wrap Math.floor around the division when calculating TTL for secondary storage - [`7f8e80c`](https://github.com/better-auth/better-auth/commit/7f8e80ce6758401a9c50fe679b72c6193d2fa5a8) chore: lint - [`6d79554`](https://github.com/better-auth/better-auth/commit/6d79554e3dfee30594e1b354390a42a6671dbd99) test: add - [`3d394ab`](https://github.com/better-auth/better-auth/commit/3d394ab4370028ce9d5d90f879273cd7bdcf1523) Merge branch 'canary' into fix/round-down-ttl-after-dividing-it ### 📊 Changes **2 files changed** (+153 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/db/internal-adapter.test.ts` (+150 -0) 📝 `packages/better-auth/src/db/internal-adapter.ts` (+3 -1) </details> ### 📄 Description For more context see this thread in discord: https://discord.com/channels/1288403910284935179/1418569936204468255 --- <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 22:05:21 -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#31172