Closed westhom closed 9 months ago
If your August verification code starts with 0, the validation check fails. See issue #54 and #48.
Don't call parseInt() on the user-supplied verification code, which can delete leading zeros. The August validate() API method wants a string anyways.
parseInt()
validate()
Support verification codes with leading zeros (no breaking changes).
:recycle: Current situation
If your August verification code starts with 0, the validation check fails. See issue #54 and #48.
:bulb: Proposed solution
Don't call
parseInt()
on the user-supplied verification code, which can delete leading zeros. The Augustvalidate()
API method wants a string anyways.:gear: Release Notes
Support verification codes with leading zeros (no breaking changes).
:heavy_plus_sign: Additional Information
Testing
Reviewer Nudging