What does Next Auth pass over to supabase when it creates a new user when authenticating #11112
Unanswered
hsheikhali1
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I am trying to create a new user in my students table after they authenticate with NextAuth. NextAuth with supabase creates a new user record within the next_auth.users table and I wanted to create a function much like the example given for when a user authenticates with supabase auth, it creates a new record in the profiles table.
I'm trying to understand how I would be able to figure out what sort of data is available after a new user is added to next_auth.users table. Is the data usually the same across the different providers? I plan on have more than one provider available.
I've reached out to supabase and they feel like the data required here is known by Next Auth?
Here is my function
and here is my trigger
Beta Was this translation helpful? Give feedback.
All reactions