Sign In Register

How can we help you today?

Start a new topic

A safe way to autologin a user?

 Hello.

Is there a safe way to autologin a user without requiring  to enter credential every time?


Hi Drosatos,


If you are implementing GameSparks with Unity when you set up a new project with the Unity SDK and perform an authentication request, an authentication token is stored locally. If you then start your scene again and do not call an authentication request, one is still performed in the background, authenticating the user and using the stored authentication token.

You can find more about how to set this up here.


Regards,

Ronan

 


Thank for your quick response! What is the expiration time of the authentication token that is stored locally and how I can change the time?

 

Hi,


The Unity Auth Token will not expire once it has been successfully obtained, should you wish to force a reset you could use this SparkPlayer call.


Kind Regards,

Ronan

Login to post a comment