feat: Initialize default authorization state with enabled status and timestamp

This commit is contained in:
wood chen 2025-02-20 01:15:16 +08:00
parent 781d2fc0c2
commit a81fee3f9a

View File

@ -17,6 +17,8 @@ export async function handleAuthorizeAction(
userId,
clientId,
scope,
enabled: true, // 新授权默认启用
lastUsedAt: new Date(), // 首次授权时间作为最后使用时间
});
return redirectUrl;