Anonymous users get erased on app update

83 views
Skip to first unread message

Gabi Karasin

unread,
Mar 1, 2023, 8:57:12 PM3/1/23
to Firebase Google Group
Hi guys,

I use anonymous authentication for my mobile app and after update all users get assigned a new token, is this the expected behaviour?
If no, what do I need to do to make it persistent?

Thanks,
Gabi

Arthur Thompson

unread,
Mar 2, 2023, 1:00:54 PM3/2/23
to fireba...@googlegroups.com
Hi Gabi,

This is expected. Anonymous Auth is not intended to be a long term form of authentication. The main usecase is allowing a user to start out anonymously then update to a long term form of auth while keeping the actions performed while anonymous.

One option would be to have some identifier for each user and use that identifier to create custom tokens and sign in the user with that custom token. That will allow you to have a user persist across app updates, uninstall/reinstalls etc.

--
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/40ffb352-bfc4-4514-a1a3-d59828c027dfn%40googlegroups.com.

Gabi Karasin

unread,
Mar 2, 2023, 8:42:06 PM3/2/23
to Firebase Google Group
It seems to be exactly what I need, thanks a lot Arthur!
Reply all
Reply to author
Forward
0 new messages