BuildShipBBuildShip
Powered by
JanisJ
BuildShip•2y ago•
11 replies
Janis

Supabase: Invite user over email

I am trying to set up a team invite system with Toddle and Supabase. I created a helper table called team_members in Supabase with a Supabase Insert Trigger node in Buildship. However, I cannot get the API call to properly work. My Invite user over email API call does send an email, however, I cant figure out why the "redirectTo" parameter does not work. Did anyone already build this and provide their node as a template?

Here's part of the node:

const body = JSON.stringify({
email,
options: {"redirectTo": "https://mysite.toddle.site/set-password"},
data: {
"full_name":
${first_name}
${first_name}
}
});
Solution
Thanks for sharing, send the emailRedirectTo as options.
options: {
    emailRedirectTo: 'https://example.com/welcome'
  }
options: {
    emailRedirectTo: 'https://example.com/welcome'
  }

In the data body, refer to this
https://supabase.com/docs/reference/javascript/auth-verifyotp. You can use the Edit with AI feature to modify it for your node
image.png
Supabase
Supabase
Jump to solution
BuildShip banner
BuildShipJoin
Join founders, builders, devs using Low-code / No-code to create backend, APIs, scheduled Jobs, automation, AI workflows
7,971Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Unable to send dynamic email from Supabase trigger
Abhishek Sahni (Abhi)AAbhishek Sahni (Abhi) / ❓・buildship-help
12mo ago
supabase
YantsoYYantso / ❓・buildship-help
2y ago
supabase
pedroPpedro / ❓・buildship-help
2y ago
EMAIL-WORKFLOW
Hack StationHHack Station / ❓・buildship-help
16mo ago