@azure/msal-browser
Version:
Microsoft Authentication Library for js
20 lines (17 loc) • 420 B
text/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")
);
}