I’m trying to implement password verification with accounts-base and accounts-password packages. I’m able to sign up and send a verification email. On clicking the link in the mail i’m able to verify the email address by defining onEmailVerificationLink and then calling verifyEmail.
The onEmailVerificationLink callback is called with two parameters “token” and “done”. The latter, as the docs state, is “A function to call when the email verification UI flow is complete. The normal login process is suspended until this function is called, so that the user can be notified that they are verifying their email before being logged in.”
I don’t understand how to use this. Can someone please explain when and how to use this in the verification flow? Should this function be called before i verify the email address? I just don’t get it…