fix(auth): extend login sessions to 30 days

将登录 Cookie 与签名会话期限延长至 30 天,并同步新建 Access 应用的默认期限。
This commit is contained in:
gdz66601 committed 2026-10-03 16:59:04 +08:00
1 parent 645ed777b4
commit 93f2685140
5 files changed
+25 -3

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ export async function ensureAccess(
name: `EdgeSSH ${settings.workerName}`,
type: 'self_hosted',
domain: hostname,
session_duration: '24h',
session_duration: '720h',
allowed_idps: providerIds,
auto_redirect_to_identity: providerIds.length === 1,
policies: [{ ...policy, precedence: 1 }],