Firebase Auth Delete User

76 views
Skip to first unread message

Ansh Tripathi

unread,
Sep 3, 2024, 12:11:18 PMSep 3
to Firebase Google Group
Hi, When I use the deleteUser function from Firebase authentication, it automatically redirects the user to the signin page. Is this a default behaviour?

Arthur Thompson

unread,
Sep 3, 2024, 6:47:28 PMSep 3
to fireba...@googlegroups.com
Firebase Auth does not control the UI of your application; however it is a common practice to have a "router" within your application listen for updates from the onAuthStateChanged() method and if that state has changed to a signed out state then the "router" routes to the login page.

This sounds like what is happening in your case so I'd check if there are any routing hooks in your application that are related to the events coming from the onAuthStateChanged() method.

On Tue, Sep 3, 2024 at 9:10 AM Ansh Tripathi <tripath...@gmail.com> wrote:
Hi, When I use the deleteUser function from Firebase authentication, it automatically redirects the user to the signin page. Is this a default behaviour?

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/40d1abdc-9f1c-41fd-968e-90b08ccd9f37n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages