Custom verification email or reset email link with custom listener

I have user case to catch user blocked event (login error events) and set user email not varified and send verification link and password reset link. This need to be done in my own listener. I don’t have AuthenticationFlowContext in my listener to do this. Some one have any idea how to do this or any related solution.