@@ -65,7 +65,7 @@ Returns:
|
||||
```json
|
||||
{
|
||||
"accessToken": "...",
|
||||
"accessTokenExpiresIn": 900,
|
||||
"accessTokenExpiresIn": 43200,
|
||||
"refreshToken": "...",
|
||||
"refreshTokenExpiresIn": 2592000,
|
||||
"user": {
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ export const config = {
|
||||
redisUrl: required('REDIS_URL', 'redis://localhost:6380'),
|
||||
jwtSecret: required('JWT_SECRET', 'dev-only-change-this-secret-at-least-32-bytes'),
|
||||
jwtIssuer: process.env.JWT_ISSUER ?? 'atnmy-stdo-auth',
|
||||
accessTokenTtlSeconds: toInt(process.env.ACCESS_TOKEN_TTL_SECONDS, 60 * 60),
|
||||
accessTokenTtlSeconds: toInt(process.env.ACCESS_TOKEN_TTL_SECONDS, 12 * 60 * 60),
|
||||
refreshTokenTtlSeconds: toInt(process.env.REFRESH_TOKEN_TTL_SECONDS, 30 * 24 * 60 * 60),
|
||||
handoffTokenTtlSeconds: toInt(process.env.HANDOFF_TOKEN_TTL_SECONDS, 60),
|
||||
maxFailedLoginAttempts: toInt(process.env.MAX_FAILED_LOGIN_ATTEMPTS, 5),
|
||||
|
||||
Reference in New Issue
Block a user