1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-08 12:40:26 +00:00

PM-20532 - Update state definition name

This commit is contained in:
Jared Snider
2025-05-21 15:29:40 -04:00
parent 8cbd75caef
commit ab723ab7cd
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import { GlobalStateProvider, KeyDefinition, SEND_AUTH_DISK } from "../../../platform/state";
import { GlobalStateProvider, KeyDefinition, SEND_ACCESS_DISK } from "../../../platform/state";
import {
SendAccessCredentials,
SendTokenService as SendTokenServiceAbstraction,
@@ -10,7 +10,7 @@ import { SendTokenApiService } from "./send-token-api.service";
// TODO: will need to build a better type for access token where it contains
// the expires in and the token itself.
export const SEND_ACCESS_TOKEN_DICT = KeyDefinition.record<string, string>(
SEND_AUTH_DISK,
SEND_ACCESS_DISK,
"accessTokenDict",
{
deserializer: (accessTokenDict) => accessTokenDict,

View File

@@ -76,7 +76,7 @@ export const TOKEN_DISK = new StateDefinition("token", "disk");
export const TOKEN_DISK_LOCAL = new StateDefinition("tokenDiskLocal", "disk", {
web: "disk-local",
});
export const SEND_AUTH_DISK = new StateDefinition("sendAuth", "disk");
export const SEND_ACCESS_DISK = new StateDefinition("sendAccess", "disk");
export const TOKEN_MEMORY = new StateDefinition("token", "memory");
export const TWO_FACTOR_MEMORY = new StateDefinition("twoFactor", "memory");