Skip to content

Customer Logout

Logout a customer and invalidate their authentication tokens.

Authentication

This query requires a valid customer authentication token in the Authorization header. Use the Customer Login API to retrieve the token.

Authorization: Bearer <accessToken>

Response

FieldTypeDescription
messageStringSuccess or error message
successBooleanLogout success status

Behavior

  • Invalidates the current access token
  • Invalidates the refresh token
  • Clears any session-related data
  • Customer will need to login again for future requests

Error Responses

json
{
  "errors": {
    "authentication": ["Unauthorized: Invalid or expired token"]
  }
}

Released under the MIT License.