Page cover

Verify The Token

Now you are on the server-side.

When you made super-safe key, but it's meaningless until you get the keyhole that check the key.

But don't worry, verifying the token is so much simpler than making keyhole.

/validate

POST https://hamutan86.pythonanywhere.com/nonstress/validate

Request (Content-Type: application/json)

{
  "token": "0dc240c66802f7329a1cb9f85804c49f6bb34a..."
}

Response

{
  "error": "",
  "pass": true,
  "score": 0.98,
  "risk_rate": "low",
  "user_data": {
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64...",
    "ip": "d3be2698fceafeb3a93dda396941118588743..."
  }
}

Last updated