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