diff --git a/src/auth/auth.module.ts b/src/auth/auth.module.ts index edaffa8..ff157f5 100644 --- a/src/auth/auth.module.ts +++ b/src/auth/auth.module.ts @@ -13,7 +13,7 @@ import { OAuthUtil } from './util/oauth.util'; import { ContentsModule } from '../contents/contents.module'; const accessTokenExpiration = TWOHOUR; -export const refreshTokenExpirationInCache = 60 * 60 * 24 * 30; +export const refreshTokenExpirationInCache = 60 * 60 * 24 * 365; // 1 year export const refreshTokenExpirationInCacheShortVersion = 60 * 60 * 24 * 2; export const verifyEmailExpiration = 60 * 5; diff --git a/src/auth/jwt/jwt.payload.ts b/src/auth/jwt/jwt.payload.ts index 13c9b22..6ac23a4 100644 --- a/src/auth/jwt/jwt.payload.ts +++ b/src/auth/jwt/jwt.payload.ts @@ -1,6 +1,6 @@ export class Payload { email!: string; // user email - period!: string; // '30d' or '2h' that indicates whether or not you are an auto-login user + period!: string; // '1y' or '2d' that indicates whether or not you are an auto-login user sub!: number; // userId }