(channel: PhoneChannel)
| 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; |
| 287 | } |
| 288 | |
| 289 | /** The persisted SMS or WhatsApp code, generating and storing one on first use. */ |
| 290 | public ensurePhoneCode(channel: PhoneChannel): string { return this.ensureCode(this.phoneCodeKey(channel)); } |
no outgoing calls
no test coverage detected