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

Method check

src/providers/touchid/touchid.ts:40–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 }
39
40 public check(): Promise<any> {
41 if (!this.platform.isCordova) return undefined;
42 if (!this.app.isLockModalOpen && this.platform.isAndroid)
43 this.app.skipLockModal = true;
44 return this.faio
45 .show({
46 clientId: this.app.info.name
47 })
48 .then((result: any) => {
49 this.logger.debug('Biometric: ', result);
50 })
51 .catch((e: any) => {
52 this.logger.error('Biometric: ' + e.message, e.code);
53 throw e;
54 });
55 }
56
57 private isNeeded(wallet): string {
58 let config = this.config.get();

Callers 4

checkWalletMethod · 0.95
checkFingerprintMethod · 0.80
checkFingerprintMethod · 0.80

Calls 3

showMethod · 0.80
debugMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected