knadh / otpgateway

Standalone server for user address and OTP verification flows with pluggable providers (e-mail, SMS, bank penny drops etc.)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature request - redis pub/sub or webhook on completion of verification

c-nv-s opened this issue · comments

At present it seems the behavior is that, after an otp code has been sent to a user, we have to constantly poll the status endpoint ( for the duration set in the ttl variable ) in order to check whether the otp code has been verified.

Would it not relieve the need to keep polling if you were to push a message onto a redis pub/sub channel once the code has been verified? or call a webhook?

I think this could help easier integration with the backend or other authentication systems.

Yep, a webhook makes sense. Will add this.