POST
/
api
/
v1
/
auth
/
challenge
Verify SIWE signature
const url = 'https://api.gnosispay.com/api/v1/auth/challenge';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '{"message":"<string>","signature":"<string>"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "token": "<string>"
}

Body

application/json

Response

200
application/json

Signature verified successfully

The response is of type object.