Skip to content

Commit 69c32c6

Browse files
committed
Fix test
1 parent f45d3eb commit 69c32c6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,5 @@ jobs:
5757
DB_PASSWORD: secret
5858
TEST_DB_NAME: starter_test
5959
TEST_APP_PORT: 8888
60+
ACCESS_TOKEN_SECRET_KEY: 'somerandoma'
61+
REFRESH_TOKEN_SECRET_KEY: 'somerandomr'

src/utils/jwt.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ const {
1212
refreshTokenSecretKey
1313
} = config.auth;
1414

15+
if (!refreshTokenSecretKey || !accessTokenSecretKey) {
16+
throw new Error('Auth refresh and access token secrets cannot be empty.');
17+
}
18+
1519
/**
1620
* Generate access token from given data
1721
*

0 commit comments

Comments
 (0)