Logs out the current user and delete **all** pending sessions for that user.
GET
/api/auth/v1/logout
const url = 'https://example.com/api/auth/v1/logout';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/auth/v1/logoutRelies on the client to drop any auth tokens. We delete the session to avoid refresh tokens bringing a logged out session back to live.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” redirect_uri
string | null
Responses
Section titled “ Responses ”Auth & refresh tokens.