How do you get data from the JSON object after custom authentication?
Options
I've successfully authenticate user using custom authentication using www.domain.com/login.php, login.php which echo out the JSON in the form of {"ResponseCode": 1, "Message":"Logged in.", "UserId":someId, "Data":someData}.
From this documentation it says that you can receive the data along with the response code after the authentication.
It uses OnOperationResponse(OperationResponse), but can't find it? Is it deprecated?
From this documentation it says that you can receive the data along with the response code after the authentication.
It uses OnOperationResponse(OperationResponse), but can't find it? Is it deprecated?
0
Comments
-
hi, Shanks
Where do you look?0 -
i mean on client or on server, what client sdk and version you are using, same about server sdk if any0
-
For client I'm using PUN+, the real-time (I guess? still confused). No sdk used for server.0
-
ok, than i will ask client peaple to help you0
-
Hi,
Currently PUN does not support custom auth return parameters (or more precisely, does not have a way to expose it in user code). Work in progress.0 -
Alright. I just used WWW and request for JSON file OnJoinedLobby0
-
FYI: successful custom authentication callback is added to PUN v1.66 by @Tobias. It will be fired only when you return
Data
property in returned JSON object.
source
similar question0