The persisted SMS or WhatsApp code, generating and storing one on first use.
(channel: PhoneChannel)
| 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)); } |
| 291 | |
| 292 | /** The persisted SMS or WhatsApp code, or null if one hasn't been generated yet. */ |
| 293 | public getPhoneCode(channel: PhoneChannel): string | null { return localStorage.getItem(this.phoneCodeKey(channel)); } |
no test coverage detected