From 71fff38aef839a749ebde45f5cad096d94644b72 Mon Sep 17 00:00:00 2001 From: Kaio Cesar Date: Fri, 21 Mar 2025 22:50:23 -0300 Subject: 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 --- docs/docs/03-configuration.md | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/docs/03-configuration.md b/docs/docs/03-configuration.md index 36de8295..6e11774e 100644 --- a/docs/docs/03-configuration.md +++ b/docs/docs/03-configuration.md @@ -35,6 +35,7 @@ When setting up OAuth, the allowed redirect URLs configured at the provider shou | OAUTH_SCOPE | No | "openid email profile" | "Full list of scopes to request (space delimited)" | | OAUTH_PROVIDER_NAME | No | "Custom Provider" | The name of your provider. Will be shown on the signup page as "Sign in with ``" | | OAUTH_ALLOW_DANGEROUS_EMAIL_ACCOUNT_LINKING | No | false | Whether existing accounts in hoarder stored in the database should automatically be linked with your OAuth account. Only enable it if you trust the OAuth provider! | +| OAUTH_TIMEOUT | No | 3500 | The wait time in milliseconds for the OAuth provider response. Increase this if you are having `outgoing request timed out` errors | For more information on `OAUTH_ALLOW_DANGEROUS_EMAIL_ACCOUNT_LINKING`, check the [next-auth.js documentation](https://next-auth.js.org/configuration/providers/oauth#allowdangerousemailaccountlinking-option). -- cgit v1.2.3-70-g09d2