Is anyone there know how to configure the flow functions to DELETE a verified user account from Firebase auth through REST Api. Found many discussion and tutorial about,
How to Sign-up, Sign-in, Auto Sign in, Email verification Password reset and all using Firebase Auth REST API reference.
Any how I managed to make Sign-up, Sign-in, verification, reset password, logout and auto sign-in, All works fine for me in my app except Delete Account. Here is my screenshots… Could anyone can solve this for me.
When I press Delete Account, I need to remove the user from my firebase authentication users list. I use the flow functions above. More flow function details screenshots bellow.
Thanks for your quick response @vereggen
Tried to set up pagevar but in value binding option I couldn’t found the binding option “Object with properties” in my app… can you explain for me please
Can you please expand your flow functions to check how do you set up all the flow??
Everything smooth except this DELETE user functionality.
Like you said, added pageVars object with property idToken… I can find the property ‘idToken’ in binding object with properties… still I cant go ahead of that as I couldn’t bind idToken property with “currentUser.id_token”… Where I go wrong, hard to figure out for me…
For appVars idToken am assigning the “idToken” response from Sign-In REST API calls and the value is “outputs[“Sign-In”].resBody.idToken”.
Actually I am not assigning any Variables to “localId” response from Sign-in REST API calls… Is that the real issue am facing @vereggen Can you please suggest some solutions.
It looks like you are grabbing and passing the correct user id (idToken). What error message are you getting back from firebase when you try to delete a user?
As my understanding is correct, the flow only works until Get items from the storage. I put a toast on the success node I am getting the idToken in toast. But after that there is no error message retrieve from the Delete user flow function, even the error message @vereggen
Your request body should be in “json” format and should match the exact schema like this {"idToken":"[FIREBASE_ID_TOKEN]"} and [FIREBASE_ID_TOKEN] with the user’s Firebase ID token.
I’ve currently got that setup via a list of objects, to create the correct schema, just seems to be returning a 400-500 error at the moment, any ideas?