From 999a75c76b200523ece703361ecede0c5c4231b6 Mon Sep 17 00:00:00 2001 From: abearxiong Date: Fri, 27 Feb 2026 04:00:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BB=A4=E7=89=8C=E5=88=9B=E5=BB=BA=E9=80=BB=E8=BE=91=EF=BC=8C?= =?UTF-8?q?=E4=BD=BF=E7=94=A8'jwks'=E4=BD=9C=E4=B8=BA=E4=BB=A4=E7=89=8C?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/user/web-login.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/user/web-login.ts b/src/routes/user/web-login.ts index f4b46c5..30be047 100644 --- a/src/routes/user/web-login.ts +++ b/src/routes/user/web-login.ts @@ -96,7 +96,7 @@ app await setErrorLoginTokenRedis(loginToken); ctx.throw(400, 'user not found'); } - const data = await user.createToken(null, 'plugin', { loginWith: 'cli' }); + const data = await user.createToken(null, 'jwks', { loginWith: 'cli' }); await redis.set(loginToken, JSON.stringify(data), 'EX', 10 * 60); // 10分钟 ctx.body = 'success'; })