Closed qadirsuh closed 5 years ago
This is not an issue concerning the lxCommunicator-source - you're requesting support on your own project. However, without reviewing your source in detail, it appears to be a common mistake.
Unlike the getkey2 request, the gettoken request has to be encrypted. The Miniserver will decline requests for tokens that are not encrypted with code 400. We will update our documentation, to make this information more prominent.
Thanks for response. is there any code available of iOS.
No, you will have to stick to JS for now.
I have done it in iOS BTW. was too difficult to trasnlate the JS code and the lxcommunicator docs was very comprehensive too. Thanks anyways for JS code. this helped alot.
I am trying to acquire tokens in iOS. I am following your code of javascript and re-writing it in iOS swift.
here is my code. and LOGs in comments