api/v1/customer/logout

This API will clear a user's authentication token, while also invalidating registration tokens from Firebase, if one is passed.

POST

/api/v1/customer/logout

Sample Request body

Parameter

Value / Type

Require

reg_token

STRING

Optional

{
    "status": true,
    "message": "User Logged out successfully !"
}
{
    "status": false,
    "errorCode": "AUTH_TOKEN_ABSENT",
    "message": "Your authentication token is absent from this request."
}