Sign In Register

How can we help you today?

Start a new topic
Answered

For JS SDK, how can I INITIALIZE with php (to hide the key), then continue with JS?

I'm realizing there's no need for an entire PHP SDK (it would be nice, of course), but if there was a way to simply initialize with PHP to hide your secret key, then the rest of the SDK would be secure - without this, the JS SDK is super unsecure.


I've been looking into Xajax , to implement this, but because this is a socket instead of a normal request, I'm not quite sure how to handle this.


Any thoughts?


Instead of initializing, I could returnNonce via php function as well.


I'm not quite sure how to do this, although I'm currently looking into it and it seems possible.


Best Answer

 There is an alternative solution described here which uses nodeJS to store the secret and key.
https://docs.gamesparks.com/tutorials/third-party-integrations/node-js-secret.html


This was discussed via a ticket with Dylan. 


Thanks,

Liam


...but what's the answer ?

 

Answer

 There is an alternative solution described here which uses nodeJS to store the secret and key.
https://docs.gamesparks.com/tutorials/third-party-integrations/node-js-secret.html

Login to post a comment