Mints a fresh WhatsApp code and overwrites the stored one, for "rotate to a new contact".
()
| 281 | |
| 282 | /** Mints a fresh WhatsApp code and overwrites the stored one, for "rotate to a new contact". */ |
| 283 | public rotateWhitelistCode(): string { return this.rotateCode(this.WHITELIST_CODE_KEY); } |
| 284 | |
| 285 | private phoneCodeKey(channel: PhoneChannel): string { |
| 286 | return channel === 'sms' ? this.SMS_CODE_KEY : this.WHITELIST_CODE_KEY; |
no test coverage detected