How to implement custom OTP email verification in Memberstack without interrupting the Webflow user session Answered
Hi all - need some help with email verification process. Due to a specific issue I need to implement a OTP for email verification, not the current 'click this link' in the email method that Memberstack uses.
This is because I need the user to stay in the browsing session and not have Gmail create a new one when they click the link in the email.
Any ideas?
Comments
2 comments
Hey Josh Dean, I believe you can explore 3rd party apps to integrate with this in a way that you can mark the users verified on Memberstack as well via automation or use custom code to achieve the use-case as well.
Another workaround possible would be to have a form which accepts the OTP and in case you can have a logic for the OTP for each user or if its random, then you store such value in a custom field in Memberstack which is only visible to you. You could use Make / Zapier to send an email (upon signup or any trigger you prefer) via Gmail / Mailgun / any email platform and in the body of the mail, you can send them the random OTP. So, you can connect the OTP form to a workflow which checks if the OTP matches and if yes marks the member as verified on Memberstack, if not it redirects to the try again to verify page. This is a very basic broken down simple version of something complex that you can set up in case you don't find 3rd party tool which solves this for you quickly.
Hey A J That's a fantastic suggestion thank you! For now, I've gone down the route of passwordless auth, as this verifies the email automatically once the user signs up with the OTP.
Please sign in to leave a comment.