Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement POST /logout Endpoint for logging out the current user. #21

Closed
3 tasks done
Lapotor opened this issue Nov 1, 2023 · 0 comments · Fixed by #58
Closed
3 tasks done

Implement POST /logout Endpoint for logging out the current user. #21

Lapotor opened this issue Nov 1, 2023 · 0 comments · Fixed by #58
Assignees
Milestone

Comments

@Lapotor
Copy link
Collaborator

Lapotor commented Nov 1, 2023

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 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.
@Lapotor Lapotor added this to the v1.0.0 milestone Nov 1, 2023
@Lapotor Lapotor self-assigned this Nov 26, 2023
whyauthentic pushed a commit that referenced this issue Dec 11, 2023
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: #59 
Closes  #21

---------

Signed-off-by: Valentin Sickert <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant