Logout
The Logout API serves to deactivate the authentication token linked to a user's session, safeguarding against unauthorized access following a user's logout.
Endpoint:
api/customer/auth/logout
Method:
POST
danger
Ensure the Authorization header contains the user's valid access token obtained during authentication. In addition to token invalidation, the Logout API also deletes all FCM tokens associated with the user, which is particularly important for mobile applications that use push notifications.
- Success Response:
{
"code": 200,
"data": null
}