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

API - Logout From Other Devices Endpoint #14

Open
4 tasks
AMAN-BARBARIA opened this issue Aug 1, 2023 · 1 comment
Open
4 tasks

API - Logout From Other Devices Endpoint #14

AMAN-BARBARIA opened this issue Aug 1, 2023 · 1 comment
Labels
enhancement New feature or request task Ticket to work on

Comments

@AMAN-BARBARIA
Copy link
Member

Goal: Implement an API endpoint to invalidate all user sessions, effectively logging the user out from all devices.

Background: For security purposes, we want to give users the ability to log out from all devices in case of suspicions about unauthorized access. This endpoint should invalidate all of the user's current sessions, requiring them to log in again on any device.

Tasks:

  • Implement a new API endpoint that invalidates all user sessions when called.
  • The endpoint should authenticate the user's current session to perform this action.
  • Handle possible errors such as unauthenticated access or server errors.
  • Write tests for the new endpoint.
@AMAN-BARBARIA AMAN-BARBARIA converted this from a draft issue Aug 1, 2023
@AMAN-BARBARIA AMAN-BARBARIA added enhancement New feature or request task Ticket to work on labels Aug 1, 2023
@AMAN-BARBARIA
Copy link
Member Author

AMAN-BARBARIA commented Aug 1, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request task Ticket to work on
Projects
Status: Ready
Development

No branches or pull requests

1 participant