question

michaelbb avatar image
michaelbb asked

Authentication: How to realize the user to stay connected??

Hi there,

I am looking for a way to leave the user connected, once the app is closed.

When he start the app the next time, he/she should be connected automatically.

I've seen there is a unity tutorial > with a remember me features but I cannot find that one in C# or for a Windows 10 UWP.

Is there a solution or do I have to write the code myself?

Many thanks,

Michael

AuthenticationwindowsPartner Add-ons
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brandon avatar image
brandon answered

@michaelbb

When you authenticate PlayFab sends your device a session token which is used to make any future API calls. That token is good for about 24 hours (but is subject to change), so as long as it has been less than 24 hours since logging in you should be able to use the session token. Since PlayFab doesn't require a persistent connection you can even cache the token in case the user closes the app.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.