Browse Source

Refactor: Improve code formatting and update TTL_SECONDS to 300

BedirhanOZCAN 1 month ago
parent
commit
9f76411e32
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/actions/auth/logout/index.ts
  2. 1 1
      src/utils/index.ts

+ 2 - 2
src/actions/auth/logout/index.ts

@@ -1,5 +1,6 @@
 import {
-    LogoutResult, ContextType
+    LogoutResult,
+    ContextType
 } from "./types";
 import {
     User
@@ -10,7 +11,6 @@ const logout = async (context: ContextType): Promise<LogoutResult> => {
     try {
         const {
             userID,
-            token
         } = context;
 
         await User.findByIdAndUpdate(userID, {

+ 1 - 1
src/utils/index.ts

@@ -7,4 +7,4 @@ export const formatValidationErrors = (errors: ValidationError[]): string[] => {
 };
 
 export const verificationCode = Math.floor(100000 + Math.random() * 900000).toString();
-export const TTL_SECONDS = 180;
+export const TTL_SECONDS = 300;