Firebase Auth Unity Editor Anonymous User Lifespan

619 views
Skip to first unread message

Alex Ferrier

unread,
May 30, 2018, 9:11:48 PM5/30/18
to Firebase Google Group
The new support for Auth in the Unity editor is great, and makes debugging much quicker. However, if using anonymous auth, you get a brand new auth sign-in, with a brand new user id, every time you expect Play. I was expecting an anonymous sign-in that is slightly more persistent than that e.g., user ID is saved between runs of the app, on the same machine, depending on some state such as the deleting of a local file, or some other mechanism to trigger "new Anonymous Auth user in this editor", similar to how you delete the app on your ios/Android device to create a new user. 

Is there a way to control the lifetime of anonymous users (or even force re-signing in as the same user) in the Editor? Or is it simply the case that this sort of "persistent-but-anonymous auth" (similar to launching the app multiple times on a mobile device without deleting in between) isn't supported?

Stewart Miles

unread,
May 30, 2018, 9:15:06 PM5/30/18
to Firebase Google Group
Right now, nope.  We would like to add login persistence in a future release but it's not ready yet.

In the meantime while you're testing you could create a user with email / password then hard code the credentials while in edit mode to automate login.

Cheers,
Stewart

On Wed, May 30, 2018 at 6:11 PM Alex Ferrier <al...@nanuinteractive.com> wrote:
The new support for Auth in the Unity editor is great, and makes debugging much quicker. However, if using anonymous auth, you get a brand new auth sign-in, with a brand new user id, every time you expect Play. I was expecting an anonymous sign-in that is slightly more persistent than that e.g., user ID is saved between runs of the app, on the same machine, depending on some state such as the deleting of a local file, or some other mechanism to trigger "new Anonymous Auth user in this editor", similar to how you delete the app on your ios/Android device to create a new user. 

Is there a way to control the lifetime of anonymous users (or even force re-signing in as the same user) in the Editor? Or is it simply the case that this sort of "persistent-but-anonymous auth" (similar to launching the app multiple times on a mobile device without deleting in between) isn't supported?

--
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 post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/a30ee653-bd3a-40b3-bfa4-d0eb94a39e74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alex Ferrier

unread,
May 31, 2018, 10:16:11 AM5/31/18
to fireba...@googlegroups.com
Oh, yeah, that would work as a way to handle something roughly like it for testing. Thank you. 

On 30 May 2018 at 18:14, 'Stewart Miles' via Firebase Google Group <fireba...@googlegroups.com> wrote:
Right now, nope.  We would like to add login persistence in a future release but it's not ready yet.

In the meantime while you're testing you could create a user with email / password then hard code the credentials while in edit mode to automate login.

Cheers,
Stewart

On Wed, May 30, 2018 at 6:11 PM Alex Ferrier <al...@nanuinteractive.com> wrote:
The new support for Auth in the Unity editor is great, and makes debugging much quicker. However, if using anonymous auth, you get a brand new auth sign-in, with a brand new user id, every time you expect Play. I was expecting an anonymous sign-in that is slightly more persistent than that e.g., user ID is saved between runs of the app, on the same machine, depending on some state such as the deleting of a local file, or some other mechanism to trigger "new Anonymous Auth user in this editor", similar to how you delete the app on your ios/Android device to create a new user. 

Is there a way to control the lifetime of anonymous users (or even force re-signing in as the same user) in the Editor? Or is it simply the case that this sort of "persistent-but-anonymous auth" (similar to launching the app multiple times on a mobile device without deleting in between) isn't supported?

--
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-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/a30ee653-bd3a-40b3-bfa4-d0eb94a39e74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/hUPQFWT4vvM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages