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?

Comments

  • chvetsov
    Options
    hi, Shanks

    Where do you look?
  • Shanks
    Options
    chvetsov said:

    hi, Shanks

    Where do you look?

    Sorry, what do you mean to ask?
  • chvetsov
    Options
    i mean on client or on server, what client sdk and version you are using, same about server sdk if any
  • Shanks
    Options
    For client I'm using PUN+, the real-time (I guess? still confused). No sdk used for server.
  • chvetsov
    Options
    ok, than i will ask client peaple to help you
  • vadim
    Options
    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.
  • Shanks
    Options
    Alright. I just used WWW and request for JSON file OnJoinedLobby :)
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    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 question