Skip to main content
POST
/
auth
/
siwe
Get Access Token
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({address: '<string>', signature: '<string>', message: '<string>'})
};

fetch('https://gp-auth-module.prod.gnosispay.com/auth/siwe', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "accessToken": "<string>",
  "refreshToken": "<string>"
}

Body

application/json
address
string
required
Pattern: ^0x[a-fA-F0-9]{40}$
signature
string
required
message
string
required
Minimum string length: 1

Response

Access and refresh tokens issued successfully

accessToken
string
required
refreshToken
string
required