updated use of environment variables to utilize await

This commit is contained in:
Sheen Capadngan
2023-04-27 02:00:16 +08:00
parent 69472514af
commit 2dd1570200
3 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -38,8 +38,8 @@ passport.use(new GoogleStrategy({
userId: user._id.toString(),
email: user.email,
},
expiresIn: getJwtProviderAuthLifetime(),
secret: getJwtProviderAuthSecret(),
expiresIn: await getJwtProviderAuthLifetime(),
secret: await getJwtProviderAuthSecret(),
});
req.providerAuthToken = providerAuthToken;