knadh/otpgateway

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

c-nv-s opened this issue · 1 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.

knadh commented

Yep, a webhook makes sense. Will add this.