© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
1 reply
timmy

get email from metadata with magic link

I've done this before with google sign in, but I don't recall the function I used. Currently I am using a magic link with this function to trigger a new profile:

begin
  insert into public.profiles (id, email)
  values (new.id, new.raw_user_meta_data->>'email');
  return new;
end;
begin
  insert into public.profiles (id, email)
  values (new.id, new.raw_user_meta_data->>'email');
  return new;
end;

that was just a shot in the dark, but is there some way to populate the "email" field in in "profiles" with the email address from "users" when a new profile is created via a trigger on auth? using magic link authentication
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Magic link email
SupabaseSSupabase / help-and-questions
4y ago
Issue with magic link email templates
SupabaseSSupabase / help-and-questions
5w ago
See if Magic Link email delivered?
SupabaseSSupabase / help-and-questions
4y ago
Magic Email Links and CDN
SupabaseSSupabase / help-and-questions
4y ago