From 7aed7bf3a7caa64cd597c1a485891130347f09de Mon Sep 17 00:00:00 2001 From: Rob Cameron Date: Fri, 3 Nov 2023 14:34:20 -0700 Subject: [PATCH] Revert "resetTokenExpiresAt not being properly set as DateTime, need to convert to string first?" This reverts commit 537c5da9d7b154b5b39e20e90486ea749c0760f0. --- packages/auth-providers/dbAuth/api/src/DbAuthHandler.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/auth-providers/dbAuth/api/src/DbAuthHandler.ts b/packages/auth-providers/dbAuth/api/src/DbAuthHandler.ts index 4b77d294ab44..7608844813e3 100644 --- a/packages/auth-providers/dbAuth/api/src/DbAuthHandler.ts +++ b/packages/auth-providers/dbAuth/api/src/DbAuthHandler.ts @@ -530,8 +530,7 @@ export class DbAuthHandler< }, data: { [this.options.authFields.resetToken]: tokenHash, - [this.options.authFields.resetTokenExpiresAt]: - tokenExpires.toISOString(), + [this.options.authFields.resetTokenExpiresAt]: tokenExpires, }, }) } catch (e) {