This commit is contained in:
Tuan Dang
2022-12-09 13:23:52 -05:00
20 changed files with 124 additions and 188 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ const checkEmailVerification = async ({
email,
token: code
});
if (!token) throw new Error('Failed to find email verification token');
} catch (err) {
Sentry.setUser(null);
+1 -1
View File
@@ -18,7 +18,7 @@ const tokenSchema = new Schema<IToken>({
},
createdAt: {
type: Date,
expires: EMAIL_TOKEN_LIFETIME,
expires: parseInt(EMAIL_TOKEN_LIFETIME),
default: Date.now
}
});