Skip to content

Student logs out of account #9

@aziztarrouche0

Description

@aziztarrouche0

User Story:
As a logged-in student,
I want to log out of my account,
so that I can protect my data when using a shared device.

User Type: Registered student (authenticated)

Main Goal:
Enable users to securely end their session and clear authentication state.

Backend Responsibilities (Node.js / Express):

  • Accept logout request
  • Invalidate authentication token if using token blacklist approach
  • Clear any server-side session data

Database Responsibilities (MongoDB):

  • Update last logout timestamp (optional)
  • Add token to blacklist collection if using token invalidation (optional)

Dependencies / Assumptions:

  • User must be logged in

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions