Does the javascript library support the "auth" param on secure basic authentication?
This is the code:
- Code: Select all
PlayerIO.authenticate(gameID, connectionID, { auth: data.hash, userId: username }, null, function (client) {
}, function (error) {
});
I'm getting the hash from the server (using PHP) for the given username. No issues getting the hash, but still getting the "Basic Authentication: The given 'auth' string was invalid" error .
I have 2 clients (using the same way to get the hash), Unity3d and HTML5, and only the last one is getting the error.
What am i doing wrong? Please help