Log out API

This API is used for log out user from App

Logout API

The Logout API allows users to securely log out from their accounts on the Majarat e-commerce platform. When users log out, their active session is terminated, ensuring that unauthorized access to their account is prevented.

Log out screen

Endpoint

  • {{baseurl}}/api/v1/customer/logout

Method

  • GET

Authorization

The API requires a valid authentication token to be included in the request header for successful logout. Users must provide their bearer token in the "Authorization" header to log out securely.

Response Format

The API responds with a JSON object indicating the status of the logout request. It may include a success message or an appropriate status code.

Example Response:

Features

  • The Logout API enables users to terminate their active session on the Majarat e-commerce platform, ensuring enhanced security and preventing unauthorized access to their accounts.

  • By requiring an authentication token, the API ensures that only authenticated users can successfully log out from their accounts.

Usage

  • Users can trigger the Logout API when they want to log out from their Majarat account.

  • This API is typically utilized in conjunction with the login and authentication process to provide users with a complete and secure session management experience.

Last updated