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