When the user logs out of your application you should also end the user’s QuoteMedia session. This can be done with the "unauthenticate" call.
Execute the POST call below:
https://app.quotemedia.com/auth/p/unauthenticate/v0/
Set content type to "application/json" by having the following in the HTTP header:
Content-Type: application/json
The user's current SID should be passed into the request body, like this:
{
"sid":"12345678-abcd-1234-ab12-abcd12345678"
}
Replace "12345678-abcd-1234-ab12-abcd12345678" with the user's actual SID.
If the call is successful, the following will be returned:
{
"@c": ".UnAuthenticateResponse",
"code": {
"value": 0,
"name": "Ok"
}
}
Note: This call is also available as a GET call but should only be implemented as a backend logout service, for increased security.
https://app.quotemedia.com/auth/g/unauthenticate/v0/SID/