how do I log in as guest I'm able to create a new guest but how do I log in as one I tried Authenticate but I get error success false credentials are invalid and I'm sure I'm putting the correct credentials from
var user = new Combu.User ();
user.CreateGuest ((bool success, string error) => {
PlayerPrefs.SetString ("UserId", Combu.CombuManager.localUser.id);
PlayerPrefs.SetString ("SessionToken", Combu.CombuManager.localUser.sessionToken);
plz help asap
var user = new Combu.User ();
user.Authenticate (PlayerPrefs.GetString("UserId"), (bool success,string error) => {
Debug.Log ("loginginasGuest - Success=" + success + " > Error="+error);
});
If you're using Combu 2.x then you need to use User.AuthenticateSession, while from Combu 3.x the authentication of a previous session is no more supported and was replaced with a built-in auto-login system, click here for the documentation.
Basically it's storing the latest username and encrypted password after a successful Authenticate if the property rememberCredentials of CombuManager component was true.
FRANCESCO CROCETTI @ SKARED CREATIONS
can you add User.AuthenticateSession again to 3.0? there going to be so many guest accounts with auto login if players are not using there main account I want them to sign in to there same guest account again ty for your reply.
AuthenticateSession won't be added back because of the new workflow and auto-login feature, but I noticed that I forgot to implement the storing info for auto-login in the method CreateGuest so I'm going to fix that. You will have to use the auto-login feature, as said it will store the last successful credentials in PlayerPrefs as you were doing for when you will use User.AutoLogin()
I'll notify you here when the update will be available with this fix.
FRANCESCO CROCETTI @ SKARED CREATIONS
I hope you haven't forgotten
I've uploaded it right now, go to Purchase History and try it out please.
FRANCESCO CROCETTI @ SKARED CREATIONS
where is the invoice number? also please provide a way to change username
The invoice number is on your Asset Store invoice, it's called "Invoice No." on top right of the PDF.
To change username just set the property before calling Update.
FRANCESCO CROCETTI @ SKARED CREATIONS
how do I change forum username is what I meant but nvm I figured it out
ok its working now but how do I create data into guest I used
var userdata = Combu.CombuManager.localUser;
userdata.customData["coins"] = coins;
but it won't work for guest
After having created the guest account with CreateGuest then you should be able to add your keys to customData of localUser and finally call Update to send to the server. What's your code and issue?
FRANCESCO CROCETTI @ SKARED CREATIONS
my apologies its working correctly ty for helping me and thank you for your fast replies will rate u 5 stars on unity
Great, thank you! 🙂
FRANCESCO CROCETTI @ SKARED CREATIONS