From 56a55ac5ae62bcabd6ebbfeb249d225723c1b869 Mon Sep 17 00:00:00 2001 From: xiongxiao Date: Sat, 21 Mar 2026 15:11:47 +0800 Subject: [PATCH] update --- src/auth/oauth/oauth.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/auth/oauth/oauth.ts b/src/auth/oauth/oauth.ts index c9982ce..2413a6c 100644 --- a/src/auth/oauth/oauth.ts +++ b/src/auth/oauth/oauth.ts @@ -160,17 +160,11 @@ export class RedisTokenStore implements Store { case 'week': expire = 7 * 24 * 60 * 60; break; - case 'month': - expire = 30 * 24 * 60 * 60; - break; - case 'season': - expire = 90 * 24 * 60 * 60; - break; default: expire = 7 * 24 * 60 * 60; // 默认过期时间为7天 } } else { - expire = Math.min(expire, 60 * 60 * 24 * 30, 60 * 60 * 24 * 90); // 默认的过期时间最大为90天 + expire = Math.min(expire, 60 * 60 * 24 * 30); // 默认的过期时间最大为30天 } await this.set(accessToken, JSON.stringify(value), expire);