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:
@@ -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,
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user