Set password after email invite
Hey Guys and Gals,
I have a feature in my web app where admins invite other users to their tenant. This consists of the admin entering the new users email and sending an invite. This triggers an edge function which creates the user and send the invite whilst making sure that that user is connected to the correct tenant and has the right role etc. This all works great and the email is received.
My dilemma is how I then set the password for this user. When you click the 'accept invitation' link in the email you are redirected to a set password page I have created, but the user is not authenticated so I cannot simply use supabase.auth.updateUser(). I have been able to extract the access token from the invite URL however this cannot be used alongside the .updateUser() API. How can i simply set the password for this newly invited user ?
Language: Flutter/Flutter Web
This is killing me someone please help !
I have a feature in my web app where admins invite other users to their tenant. This consists of the admin entering the new users email and sending an invite. This triggers an edge function which creates the user and send the invite whilst making sure that that user is connected to the correct tenant and has the right role etc. This all works great and the email is received.
My dilemma is how I then set the password for this user. When you click the 'accept invitation' link in the email you are redirected to a set password page I have created, but the user is not authenticated so I cannot simply use supabase.auth.updateUser(). I have been able to extract the access token from the invite URL however this cannot be used alongside the .updateUser() API. How can i simply set the password for this newly invited user ?
Language: Flutter/Flutter Web
This is killing me someone please help !