logout

description

Logs out a user by removing their authentication token from the server.

parameters

The request body should contain the authentication token and user ID to be logged out.

resource

{
	"authToken":"<authentication token>",
	"userId":"<user id>"
}

response

Returns the status of the logout request.

example

POST /api/logout 

{
	"authToken":"abc123token",
	"userId":"user123"
}

You should get back:

{
    "status": "success"
}

Last updated