From a81fee3f9abd2c1cb2d1b1792dddcebd354685dc Mon Sep 17 00:00:00 2001 From: wood chen Date: Thu, 20 Feb 2025 01:15:16 +0800 Subject: [PATCH] feat: Initialize default authorization state with enabled status and timestamp --- src/actions/authorizing.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/actions/authorizing.ts b/src/actions/authorizing.ts index 8c789b7..f17979b 100644 --- a/src/actions/authorizing.ts +++ b/src/actions/authorizing.ts @@ -17,6 +17,8 @@ export async function handleAuthorizeAction( userId, clientId, scope, + enabled: true, // 新授权默认启用 + lastUsedAt: new Date(), // 首次授权时间作为最后使用时间 }); return redirectUrl;