hngprojects / hng_boilerplate_nestjs

Description
Apache License 2.0
181 stars 105 forks source link

[FIX] [ANCHOR: BE JAVA] Backend Endpoint for Magic Link Login #943

Open Antynews opened 3 months ago

Antynews commented 3 months ago

Description

Create a backend endpoint that verifies the magic link clicked by the user and logs them into their account. The endpoint should validate the token in the magic link and establish a session if valid.

Acceptance Criteria

-Develop an endpoint that validates the magic link token. -If the token is valid, log the user into their account and establish a session. -Invalidate the token after successful login. -Handle errors such as expired or invalid tokens.

Purpose

To allow users to log in securely using a magic link, streamlining the login process.

Requirements

-Securely manage token validation and session creation. -Include error handling for token expiration and other edge cases. -Conduct testing to ensure the magic link login process is reliable and secure.

Expected Outcome

Users can securely log in using a magic link, with the system validating the token and establishing a session

Ofektom commented 3 months ago

Interested