Resend Invitation Email

Hi! We find ourselves in a situation where our Invite email tokens are expiring for customers frequently and causing a huge headache on all sides. Our invitation flow is done/commissioned when we collect payment which is typically handled by different individuals than those using our product. The result is that often, our invites get sent out and ignored until later when the teams actually want to use the product, and the result is the invitation token has expired. What we want: We want to create a self service flow for a given invitee to have the ability to retrigger the invite email. We are looking for recommendations or best way to do this. The resend method does handle invite email types. Every other solution we contemplate, would need to call inviteUserByEmail which is extremely risky to call on an unauthorized flow. Are there ways to do this/what is recommended in this scenario.
1 Reply
Fabrizio
Fabrizio5d ago
is this would help you - https://supabase.com/docs/reference/javascript/auth-verifyotp - you can create a page with a button to trigger this function and you will get pretty much the same functionality
JavaScript: Verify and log in through OTP | Supabase Docs
Supabase API reference for JavaScript: Verify and log in through OTP

Did you find this page helpful?