Currently I am using custom authentication, and the endpoint I'm using is from supabases self hosted auth. I have sign up working with anonymous users and using email and password. What I'd like to do is be able to upgrade an anonymous user using email and password. So an anonymous user goes to a sign up form, enters an email and password (which hits supabase's /signup endpoint), and I'd like to upgrade the current user so that it has the same ID it had as an anonymous user, rather than just continuing with the newly created one and it's ID.
I want the userID to remain the same for the purpose of backend analytics.
Also, I know you could use supabase directly as authentication in Flutterflow but I didn't make the decision/cant change it and I'm not sure it would help anyway.
Upgrade anonymous user custom authentication
Database & APIs
I've tried using the update authenticated user action to edit the newly created user's ID to be the one of the anonymous user that signed up
I looked into using linkidentity, but flutterflow uses too old of a supabase version.
When I go into a custom action and I get the supabase's GoTrueClient, it does not have the method available.
I saw a custom code solution for people using firebase, but I am using supabase and the identityLink function, which was my best guess, is not provided in Flutterflows version of supabase and supabase_flutter
Yes
3
3 replies