[PR #1136] [MERGED] feat(auth): Added env variable for OAuth timeout #1739

Closed
opened 2026-03-02 11:58:58 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/karakeep-app/karakeep/pull/1136
Author: @Kaio-Cesar
Created: 3/17/2025
Status: Merged
Merged: 3/22/2025
Merged by: @MohamedBassem

Base: mainHead: to-commit


📝 Commits (3)

  • 12983fb feat(auth): add configurable OAuth timeout option
  • 61c21cd fix(config): change OAUTH_TIMEOUT to use z.coerce.number for better type handling
  • 1577384 docs: Added instructions for OAUTH_TIMEOUT flag

📊 Changes

3 files changed (+6 additions, -0 deletions)

View changed files

📝 apps/web/server/auth.ts (+3 -0)
📝 docs/docs/03-configuration.md (+1 -0)
📝 packages/shared/config.ts (+2 -0)

📄 Description

Small change to add a new env variables for OAuth timeouts, on some configurations, particularly on lower-end hardware (Such as my homelab orange pi), the authentication provider can take too much time to respond, with results in a timeout and failed authentication

The same behavior has been reported over at Homarr, which uses next-auth as well: https://github.com/ajnart/homarr/issues/1995

(My homelab is an orangepi zero3, the auth provider is Authentik)


🔄 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/karakeep-app/karakeep/pull/1136 **Author:** [@Kaio-Cesar](https://github.com/Kaio-Cesar) **Created:** 3/17/2025 **Status:** ✅ Merged **Merged:** 3/22/2025 **Merged by:** [@MohamedBassem](https://github.com/MohamedBassem) **Base:** `main` ← **Head:** `to-commit` --- ### 📝 Commits (3) - [`12983fb`](https://github.com/karakeep-app/karakeep/commit/12983fb94728492b72b418bf99b392550acb2bab) feat(auth): add configurable OAuth timeout option - [`61c21cd`](https://github.com/karakeep-app/karakeep/commit/61c21cd4ed181d2c18325007cea55e270bcebbc2) fix(config): change OAUTH_TIMEOUT to use z.coerce.number for better type handling - [`1577384`](https://github.com/karakeep-app/karakeep/commit/1577384cab3693dbaf6374925aa960db60090e34) docs: Added instructions for OAUTH_TIMEOUT flag ### 📊 Changes **3 files changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/server/auth.ts` (+3 -0) 📝 `docs/docs/03-configuration.md` (+1 -0) 📝 `packages/shared/config.ts` (+2 -0) </details> ### 📄 Description Small change to add a new env variables for OAuth timeouts, on some configurations, particularly on lower-end hardware (Such as my homelab orange pi), the authentication provider can take too much time to respond, with results in a timeout and failed authentication The same behavior has been reported over at Homarr, which uses next-auth as well: https://github.com/ajnart/homarr/issues/1995 (My homelab is an orangepi zero3, the auth provider is Authentik) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 11:58:58 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#1739
No description provided.