diff options
author | Florian Dold <florian@dold.me> | 2021-06-14 11:21:29 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-06-14 11:21:29 +0200 |
commit | 6e11b69cf5beb25fec1dfdff281877a76bf195a4 (patch) | |
tree | 6c4f36c915ab99b9cc17cb141ea72967fe8a576a /packages/taler-wallet-core/src/wallet.ts | |
parent | 9acd4a40602b16e230210dd508a2a8d6e86e6020 (diff) | |
download | wallet-core-6e11b69cf5beb25fec1dfdff281877a76bf195a4.tar.gz wallet-core-6e11b69cf5beb25fec1dfdff281877a76bf195a4.tar.bz2 wallet-core-6e11b69cf5beb25fec1dfdff281877a76bf195a4.zip |
allow changing the wallet device ID
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 5 |
1 files changed, 5 insertions, 0 deletions
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<void> { + return setWalletDeviceId(this.ws, newDeviceId); + } + /** * Update or add exchange DB entry by fetching the /keys and /wire information. */ |