Auth_logout
POST
/api/auth/logout
const url = 'https://met.cards/api/auth/logout';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"refreshToken":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://met.cards/api/auth/logout \ --header 'Content-Type: application/json' \ --data '{ "refreshToken": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
refreshToken
string
Examplegenerated
{ "refreshToken": "example"}