MCPcopy
hub / github.com/bitpay/wallet / setTouchId

Method setTouchId

src/providers/wallet/wallet.ts:1897–1909  ·  view source on GitHub ↗
(walletsArray: any[], enabled: boolean)

Source from the content-addressed store, hash-verified

1895 }
1896
1897 public setTouchId(walletsArray: any[], enabled: boolean): Promise<any> {
1898 const opts = {
1899 touchIdFor: {}
1900 };
1901 walletsArray.forEach(wallet => {
1902 opts.touchIdFor[wallet.id] = enabled;
1903 });
1904 const promise = this.touchidProvider.checkWallet(walletsArray[0]);
1905 return promise.then(() => {
1906 this.configProvider.set(opts);
1907 return Promise.resolve();
1908 });
1909 }
1910
1911 public getKeys(wallet): Promise<any> {
1912 return new Promise((resolve, reject) => {

Callers 3

wallet.spec.tsFile · 0.80
touchIdChangeMethod · 0.80
touchIdChangeMethod · 0.80

Calls 2

checkWalletMethod · 0.80
setMethod · 0.65

Tested by

no test coverage detected