How to set user password after accepting invitation (JS API)
I want to build a simple email authentication system using the inbuilt invitation function from the Supbase web application (inviting users through the web UI, not the API). This is only intended for a small, fixed number of users so we do not want to invest in building our own application UI for the purpose.
I am able to send an invitation email by this method, and I have managed to set up a confirmation page where the user who receives the invitation can confirm their account. After redirecting to the Supabase confirmation url, then back to my app, they are then authenticated.
However, there doesn't seem to be any way for them to set a password in this process. What's the recommended workflow here? Before hitting the confirmation url, they are not logged in, so can't set a password, and after, they are logged in, but my app doesn't know that they don't have a password. Is there a way for the supabase confirmation URL to redirect them back to a special url on my end?
I am able to send an invitation email by this method, and I have managed to set up a confirmation page where the user who receives the invitation can confirm their account. After redirecting to the Supabase confirmation url, then back to my app, they are then authenticated.
However, there doesn't seem to be any way for them to set a password in this process. What's the recommended workflow here? Before hitting the confirmation url, they are not logged in, so can't set a password, and after, they are logged in, but my app doesn't know that they don't have a password. Is there a way for the supabase confirmation URL to redirect them back to a special url on my end?
