Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400 unknown message type - on verify pin #1029

Open
nks017 opened this issue May 26, 2024 · 0 comments
Open

400 unknown message type - on verify pin #1029

nks017 opened this issue May 26, 2024 · 0 comments
Labels

Comments

@nks017
Copy link

nks017 commented May 26, 2024

Question

I have connect to the socket now I want to authenticate with a PIN I have received the PIN after that I tried to verify but 400 error.

let verificationRequest: [String: Any] = [
            "type": "request",
            "id": "verify_0",
            "payload": [
                "pin": 1212121
            ]
        ]
        
   if let jsonData = try? JSONSerialization.data(withJSONObject: verificationRequest, options: []),
        let jsonString = String(data: jsonData, encoding: .utf8) {
        socket?.write(string: jsonString)
   }

{"type":"error","id":"verify_0","error":"400 unknown message type","payload":{}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant