From 4142d92db57158bdfb571862ba90bb7c533ee3ee Mon Sep 17 00:00:00 2001 From: Jared Snider Date: Thu, 29 May 2025 14:32:44 -0400 Subject: [PATCH] PM-20532 - Password to password hash rename --- .../request/identity-token/send-access-token.request.ts | 4 ++-- .../src/auth/send-access/abstractions/send-token.service.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/common/src/auth/models/request/identity-token/send-access-token.request.ts b/libs/common/src/auth/models/request/identity-token/send-access-token.request.ts index 18478d29c51..b6f89fcd614 100644 --- a/libs/common/src/auth/models/request/identity-token/send-access-token.request.ts +++ b/libs/common/src/auth/models/request/identity-token/send-access-token.request.ts @@ -3,7 +3,7 @@ import { GrantType } from "../../../enums/grant-type.enum"; import { Scope } from "../../../enums/scopes.enum"; import { SendAccessCredentials } from "../../../send-access/abstractions/send-token.service"; -export type SendAccessTokenPasswordPayload = { password: string }; +export type SendAccessTokenPasswordPayload = { password_hash: string }; export type SendAccessTokenEmailOtpPayload = { email: string; otp: string }; export type SendAccessTokenAnonymousPayload = object; // empty object @@ -45,7 +45,7 @@ export class SendAccessTokenRequest { }; if (this.sendAccessCredentials && this.sendAccessCredentials.type === "password") { - return { ...base, password: this.sendAccessCredentials.password }; + return { ...base, password_hash: this.sendAccessCredentials.passwordHash }; } else if (this.sendAccessCredentials && this.sendAccessCredentials.type === "email-otp") { return { ...base, diff --git a/libs/common/src/auth/send-access/abstractions/send-token.service.ts b/libs/common/src/auth/send-access/abstractions/send-token.service.ts index dd815c1a1d4..c7b634dab27 100644 --- a/libs/common/src/auth/send-access/abstractions/send-token.service.ts +++ b/libs/common/src/auth/send-access/abstractions/send-token.service.ts @@ -9,7 +9,7 @@ export type SendAccessCredentialsType = "password" | "email-otp"; export type SendPasswordCredentials = { type: "password"; - password: SendHashedPassword; + passwordHash: SendHashedPassword; }; export type SendEmailOtpCredentials = { type: "email-otp";