Project-Stage-Academy / UA_1155_alpha

UA-1155.Python Project Stage alpha group
3 stars 0 forks source link

Implement User Sign Out #7

Closed mehalyna closed 3 months ago

mehalyna commented 3 months ago

Objective: Allow users to log out (sign out) of the application.

Sub-Tasks:

  1. Invalidate JWT on Sign Out:

    • Since JWTs are stateless, consider strategies for invalidating the token on logout, such as a token blacklist or short token lifespan with refresh tokens.
  2. Create Sign Out API Endpoint (Optional):

    • If implementing a token blacklist, develop an endpoint to add the user’s current token to this list upon logout.
  3. Client-Side Token Deletion:

    • Ensure the client application deletes the token upon user logout for security purposes.

US #3