Playfab integration

I have problem on API request for GetPhotonAuthenticationToken, I don't know what to put on X-Authentication, and I got this error.

code : 401
error : "NotAuthenticated"
errorCode : 1074
errorMessage : "X-Authentication HTTP header contains invalid ticket"
status : "Unauthorized"

I don't know what to do because I can't search any documentation for photon javascript and integration to playfab.
I'm a newbie here and I need help thanks :)

Comments

  • JohnTubeJohnTube mod
    edited November 2017
    Hi @Jake05,

    Thank you for choosing Photon!

    This is a PlayFab specific question that should be posted on PlayFab forums instead.

    However, here is what you should do:

    You need to login first to PlayFab using one of their Client API methods.
    The login response will contain the session auth token that you will need to use in the next Client API methods as HTTP header "X-Authentication", GetPhotonAuthenticationToken is an example.

    But you do not need to worry about this if you use PlayFab's official SDKs.
    They have JavaScript or node.js SDKs.
  • Thanks. I figure it out. :D
Sign In or Register to comment.