Skip to main content
POST
/
auth
/
logout
Logout
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({refreshToken: '<string>'})
};

fetch('https://gp-auth-module.prod.gnosispay.com/auth/logout', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true
}

Body

application/json
refreshToken
string
required
Minimum string length: 1

Response

Logged out successfully

success
enum<boolean>
required
Available options:
true