Open vungo99 opened 1 year ago
Hi @vungo99, it's not available yet.
tks for your reply. one more question about the edge case, when 2 or more SMS OTPs are sent at the same time, can pinput detect correctly SMS OTP from the right app's vendor? thank u so muchh
@vungo99 If you enable smsRetrieverApi it will only read SMS that will have the application signature in the content. Check out the autofill section in the readme for more details.
Can I use smsCodeMatcher to detect OTP when message has many number like : "your account 123456 will receive OTP 654321 and has valid in 300s " => detect otp : 654321
@vungo99 Yes, you can set a regex that will match the OTP instead of account id. Do both OTP and account Id have the same length?
Yes, they have the same length like : " your id 022C123456 will receive OTP 666666 in 300s". I write regex OTP\s*(\d{6}) but not work. Can you suggest regex for me ?? I try too much but it not work
@vungo99 Try this regex r'\b(\d{6})\b'
smsCodeMatcher: '\b(\d{6})\b', right ?
smsCodeMatcher: r'\b(\d{6})\b'
oh tk u so much !! It work like a charm :D
hi @Tkko , I have the issue : msg 1 : "TBC: your id 022C123456 will receive OTP 666666 in 300s " msg 2 : "your id 022C123456 will receive OTP 666666 in 300s" how can use regex to accept otp from msg1, not msg2
Hey @vungo99, I usually ask regex questions to ChatGPT 🙈
I use it too, but can't apply 🙈🙈🙈
is available when pinput allows user to edit a single box?