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.
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.