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)) {