1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 12:13:45 +00:00

PM-20532 - Password to password hash rename

This commit is contained in:
Jared Snider
2025-05-29 14:32:44 -04:00
parent 6dd839cca1
commit 4142d92db5
2 changed files with 3 additions and 3 deletions

View File

@@ -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,

View File

@@ -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";