The persisted SMS or WhatsApp code, or null if one hasn't been generated yet.
(channel: PhoneChannel)
| 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)); } |
| 294 | |
| 295 | /** Mints a fresh SMS or WhatsApp code and overwrites the stored one. */ |
| 296 | public rotatePhoneCode(channel: PhoneChannel): string { return this.rotateCode(this.phoneCodeKey(channel)); } |
no test coverage detected