From 6e11b69cf5beb25fec1dfdff281877a76bf195a4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 14 Jun 2021 11:21:29 +0200 Subject: allow changing the wallet device ID --- packages/taler-wallet-core/src/wallet.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages/taler-wallet-core/src/wallet.ts') diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 854039a8f..900a2e779 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -187,6 +187,7 @@ import { AsyncCondition } from "./util/promiseUtils"; import { TimerGroup } from "./util/timer"; import { getExchangeTrust } from "./operations/currencies.js"; import { DbAccess } from "./util/query.js"; +import { setWalletDeviceId } from "./operations/backup/state.js"; const builtinAuditors: AuditorTrustRecord[] = [ { @@ -586,6 +587,10 @@ export class Wallet { return deleteTransaction(this.ws, req.transactionId); } + async setDeviceId(newDeviceId: string): Promise { + return setWalletDeviceId(this.ws, newDeviceId); + } + /** * Update or add exchange DB entry by fetching the /keys and /wire information. */ -- cgit v1.2.3