Forum Multiplayer Authentication Problem

Discussion and help relating to the PlayerIO Multiplayer API.

Authentication Problem

Postby X-Jack Rich » April 28th, 2017, 8:19 pm

Hi im having a problem using authentication with my game... This is the code I use:

Code: Select all
var darray:Array = []
         darray.push({"userId": "test"});
            darray.push({"auth": "1480598005:12312d2d13rde13f1g564"});
         PlayerIO.authenticate(
            stage,                        //Referance to stage
            "gameid",         //Game id (Get your own at playerio.com)
            "protectedconnection",   
            "fb106549309911986",   //Connection id, default is public
            darray,//User auth. Can be left blank if authentication is disabled on connection                     //Current PartnerPay partner.
            handleConnect,                  //Function executed on successful connect
            handleError                     //Function executed if we recive an error
         );


and I get this error:
Code: Select all
ReferenceError: Error #1069: Property yahoologin not found on String and there is no default value.
   at playerio::PlayerIO/authenticate()
   at playerio::PlayerIO$/authenticate()
   at MyGame()


What's wrong? :oops: :oops: :oops: :oops: :oops: :oops:
:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:
X-Jack Rich
 
Posts: 13
Joined: July 26th, 2014, 10:14 am

Re: Authentication Problem

Postby Henrik » April 28th, 2017, 11:45 pm

https://playerio.com/documentation/refe ... thenticate

Remove the argument "fb106549309911986".
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm


Return to Multiplayer