Closed mariopepe closed 10 months ago
Hey @mariopepe, sorry for the inconvenience, from now on the default sms code matcher regex will match maximum 8 characters instead of 7, so you should be good to go.
Old:
const _defaultCodeMatcher = '\\d{4,7}';
Current:
const _defaultCodeMatcher = '\\d{4,8}';
Fantastic thanks to you!
@Tkko WDYT about, user can pass the custom matcher?
@devpawann you can pass it. The parameter is called smsCodeMatcher
The change log for a potentially (maybe? not sure? not clear?) breaking change is not clear.
Change log states:
Updated default SMS code matcher regex length to 8 digits
.My OTPs are 6 chars, how should I change the code to keep the matcher length to 6 digits?
I tried to search in the commits history but none of the commits seems to be about that so I am not even sure how to find this information by myself (see screenshot)
Thanks