aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorKaio Cesar <rasec.k0@proton.me>2025-03-21 22:50:23 -0300
committerGitHub <noreply@github.com>2025-03-22 01:50:23 +0000
commit71fff38aef839a749ebde45f5cad096d94644b72 (patch)
tree3d030554d7c02fab87325b4233f6108d19f3b1a3 /apps
parentbffbd43672ca9c3366b0e94c20fadb26d86dfdb9 (diff)
downloadkarakeep-71fff38aef839a749ebde45f5cad096d94644b72.tar.zst
feat(auth): Added env variable for OAuth timeout (#1136)
* feat(auth): add configurable OAuth timeout option * fix(config): change OAUTH_TIMEOUT to use z.coerce.number for better type handling * docs: Added instructions for OAUTH_TIMEOUT flag
Diffstat (limited to 'apps')
-rw-r--r--apps/web/server/auth.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/web/server/auth.ts b/apps/web/server/auth.ts
index ee226743..8fa60a75 100644
--- a/apps/web/server/auth.ts
+++ b/apps/web/server/auth.ts
@@ -114,6 +114,9 @@ if (oauth.wellKnownUrl) {
allowDangerousEmailAccountLinking: oauth.allowDangerousEmailAccountLinking,
idToken: true,
checks: ["pkce", "state"],
+ httpOptions: {
+ timeout: oauth.timeout,
+ },
async profile(profile: Record<string, string>) {
const [admin, firstUser] = await Promise.all([
isAdmin(profile.email),