We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f45d3eb commit 69c32c6Copy full SHA for 69c32c6
.github/workflows/ci.yml
@@ -57,3 +57,5 @@ jobs:
57
DB_PASSWORD: secret
58
TEST_DB_NAME: starter_test
59
TEST_APP_PORT: 8888
60
+ ACCESS_TOKEN_SECRET_KEY: 'somerandoma'
61
+ REFRESH_TOKEN_SECRET_KEY: 'somerandomr'
src/utils/jwt.ts
@@ -12,6 +12,10 @@ const {
12
refreshTokenSecretKey
13
} = config.auth;
14
15
+if (!refreshTokenSecretKey || !accessTokenSecretKey) {
16
+ throw new Error('Auth refresh and access token secrets cannot be empty.');
17
+}
18
+
19
/**
20
* Generate access token from given data
21
*
0 commit comments