Files
sistema_combustible/backend/node_modules/@azure/msal-browser/src/cache/EncryptedData.ts
2026-06-02 16:57:08 +00:00

20 lines
420 B
TypeScript

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
export type EncryptedData = {
id: string;
nonce: string;
data: string;
lastUpdatedAt: string;
};
export function isEncrypted(data: object): data is EncryptedData {
return (
data.hasOwnProperty("id") &&
data.hasOwnProperty("nonce") &&
data.hasOwnProperty("data")
);
}