Is it possible to logoff a user?

Is it possible to logoff a user?

I have managed to login with email/password and with auth token (saved in a local file).

So the first time I need to login or register.

Then I will be automatically logged from the previous session.

But if I want to logoff and login with another user? Maybe because it’s not me that is playing on the same device?

Is it possible to logoff the user from the current session?

If so, how?

Thank you,

Ema

Hi emanueleo,

If you nil out the authToken variable, all the next calls will not work until you login again (those calls that require an authToken). So if you have a button connected to a callback method that sets the authToken to nil, and eventually redirect the user to the login view / scene / etc, that should work.

Hope this helps,

Alex.

Hi emanueleo,

If you nil out the authToken variable, all the next calls will not work until you login again (those calls that require an authToken). So if you have a button connected to a callback method that sets the authToken to nil, and eventually redirect the user to the login view / scene / etc, that should work.

Hope this helps,

Alex.