aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Nanis2026-09-14 11:10:14 -0700
committerMax Nanis2026-09-14 11:10:14 -0700
commit2a79198d694a9825637d397215059560e3b09f13 (patch)
tree35941bfdbdfb4bcae521358c75243018e19fb97f
parent9edf30c28d57769bcae826e1b0ce0d98bb289357 (diff)
downloadamt-jb-2a79198d694a9825637d397215059560e3b09f13.tar.gz
amt-jb-2a79198d694a9825637d397215059560e3b09f13.zip
magic link for 3hrs for now
-rw-r--r--jb/api/magic_token.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jb/api/magic_token.py b/jb/api/magic_token.py
index b60d5e9..dc05686 100644
--- a/jb/api/magic_token.py
+++ b/jb/api/magic_token.py
@@ -9,7 +9,7 @@ from jb.models.auth import AmtAccountLink
MAGIC_TOKEN_PREFIX = "auth:magic:"
AMT_ACCOUNT_LINK_TOKEN_PREFIX = "auth:amt-account-link:"
-MAGIC_TOKEN_TTL: int = 10 * 60 # 10 minutes, in seconds
+MAGIC_TOKEN_TTL: int = 3 * 60 * 60 # 3hrs, in seconds
def redis_token_key(token: str, prefix: str = MAGIC_TOKEN_PREFIX) -> str: