Skip to content

Commit

Permalink
fix: jwt key 存储位置
Browse files Browse the repository at this point in the history
  • Loading branch information
SALTWOOD committed Aug 27, 2024
1 parent 7225ed4 commit 67fcb38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jwt-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 67fcb38

Please sign in to comment.