You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This task involves implementing the POST /logout endpoint in the Laravel project. The purpose of this endpoint is to allow users to log out of their accounts. When a user makes a POST request to this endpoint, the server should invalidate their authentication token and log them out.
Tasks:
Create a new route for the POST /logout endpoint in the routes file.
Implement the logic to invalidate the user's authentication token.
Ensure that the user is successfully logged out and no longer authenticated after making a request to this endpoint.
Acceptance Criteria:
When a user sends a POST request to /logout, their authentication token should be invalidated.
Subsequent requests with the same token should result in a 401 Unauthorized response.
Additional Information:
This work item is part of the authentication flow and is crucial for ensuring user security and privacy.
The text was updated successfully, but these errors were encountered:
This implements the `/logout` endpoint, providing users with the ability
to initiate a logout process. The addition of this feature enhances the
overall user experience and aligns with expected functionality for
session management in the application.
Depends-on: #59Closes#21
---------
Signed-off-by: Valentin Sickert <[email protected]>
Description:
This task involves implementing the
POST /logout
endpoint in the Laravel project. The purpose of this endpoint is to allow users to log out of their accounts. When a user makes aPOST
request to this endpoint, the server should invalidate their authentication token and log them out.Tasks:
POST /logout
endpoint in the routes file.Acceptance Criteria:
POST
request to/logout
, their authentication token should be invalidated.401 Unauthorized
response.Additional Information:
The text was updated successfully, but these errors were encountered: