From 67fcb3855abff6884abfc1d3e1964f4a4d3a1bda Mon Sep 17 00:00:00 2001 From: SALTWOOD <105980161+SALTWOOD@users.noreply.github.com> Date: Wed, 28 Aug 2024 00:43:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20jwt=20key=20=E5=AD=98=E5=82=A8=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jwt-helper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jwt-helper.ts b/src/jwt-helper.ts index 9762e10..e292cfa 100644 --- a/src/jwt-helper.ts +++ b/src/jwt-helper.ts @@ -7,8 +7,8 @@ class JwtHelper { private static instance: JwtHelper; private readonly privateKey: KeyObject; private readonly publicKey: KeyObject; - private static readonly privateKeyPath = path.resolve('private.key'); - private static readonly publicKeyPath = path.resolve('public.key'); + private static readonly privateKeyPath = path.resolve('./data', 'private.key'); + private static readonly publicKeyPath = path.resolve('./data', 'public.key'); private constructor() { if (existsSync(JwtHelper.privateKeyPath) && existsSync(JwtHelper.publicKeyPath)) {