hngprojects / hng_boilerplate_nestjs

Description
Apache License 2.0
181 stars 105 forks source link

[FIX] [ANCHOR: BE JAVA] Backend Endpoint for Magic Link Email #941

Open Antynews opened 3 months ago

Antynews commented 3 months ago

Description

Develop a backend endpoint that generates and sends a magic link to a user’s email for quick login without a password. The magic link should contain a secure token that, when clicked, logs the user into their account.

Acceptance Criteria

-Implement an endpoint that generates a magic link containing a secure token. -Send the magic link to the user’s registered email. -Ensure the token is securely tied to the user’s session and has an expiration time. -Handle errors such as undelivered emails and invalid tokens.

Purpose

To provide users with a quick and secure way to log in using a magic link sent to their email.

Requirements

-Ensure secure token generation and session management. -Implement error handling for email delivery and token validation. -Thoroughly test the functionality and security of the magic link.

Expected Outcome

Users can log in securely by clicking on a magic link sent to their email.

Ofektom commented 3 months ago

Interested