JavaScript
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>" }
Verify a signed SIWE message. Returns both a short-lived access token and a longer-lived refresh token in the response body. The client is responsible for storing the refresh token securely.
^0x[a-fA-F0-9]{40}$
1
Access and refresh tokens issued successfully