UNPKG

@microsoft/useragent-sdk

Version:

SDK for building decentralized identity wallets and enterprise agents.

26 lines 954 B
"use strict"; /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License in the project root for license information. *--------------------------------------------------------------------------------------------*/ Object.defineProperty(exports, "__esModule", { value: true }); /** * Implementation of a data handler for testing. * @class * @implements IDataHandler */ class TestDataHandler { /** * Test method that simply switches issuedBy and issuedAt fields. * @inheritdoc */ async process(inputCredential) { return { issuedBy: inputCredential.issuedTo, issuedTo: inputCredential.issuedBy, issuedAt: new Date() }; } } exports.default = TestDataHandler; //# sourceMappingURL=TestDataHandler.js.map