JavaScript
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 }
Invalidate the current session by revoking all refresh tokens in the token family. The client is responsible for deleting the refresh token from its storage.
1
Logged out successfully
true