From 878ade6b7aa07df3364eda6d7d2b58e1dcb38717 Mon Sep 17 00:00:00 2001 From: Tobbe Lundberg Date: Fri, 3 Mar 2023 19:45:27 +0100 Subject: [PATCH] Fix dbAuth resetPassword option type --- packages/auth-providers/dbAuth/web/src/__tests__/dbAuth.test.ts | 2 +- packages/auth-providers/dbAuth/web/src/dbAuth.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/auth-providers/dbAuth/web/src/__tests__/dbAuth.test.ts b/packages/auth-providers/dbAuth/web/src/__tests__/dbAuth.test.ts index 817f2931a9a8..ff2f6e4ddbce 100644 --- a/packages/auth-providers/dbAuth/web/src/__tests__/dbAuth.test.ts +++ b/packages/auth-providers/dbAuth/web/src/__tests__/dbAuth.test.ts @@ -192,7 +192,7 @@ describe('dbAuth', () => { await act( async () => await auth.resetPassword({ - token: 'reset-token', + resetToken: 'reset-token', password: 'password', }) ) diff --git a/packages/auth-providers/dbAuth/web/src/dbAuth.ts b/packages/auth-providers/dbAuth/web/src/dbAuth.ts index 6cdc7452e882..0f63dbb7a9bb 100644 --- a/packages/auth-providers/dbAuth/web/src/dbAuth.ts +++ b/packages/auth-providers/dbAuth/web/src/dbAuth.ts @@ -8,7 +8,7 @@ export interface LoginAttributes { } export interface ResetPasswordAttributes { - token: string + resetToken: string password: string }