From 84e62e4041f66ba3bb70b1113be62acee5353cc0 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 21 十月 2024 17:41:28 +0800
Subject: [PATCH] 获取第三方token接口

---
 app/service/auth.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/service/auth.py b/app/service/auth.py
index 09a4917..896b8d9 100644
--- a/app/service/auth.py
+++ b/app/service/auth.py
@@ -35,7 +35,7 @@
     if expires_delta:
         expire = datetime.utcnow() + expires_delta
     else:
-        expire = datetime.utcnow() + timedelta(minutes=15)
+        expire = datetime.utcnow() + timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES)
     to_encode.update({"exp": expire})
     encoded_jwt = encode(to_encode, SECRET_KEY, algorithm=ALGORITHM)
     return encoded_jwt

--
Gitblit v1.8.0