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.
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
How to test
Endpoint
/api/v1/auth/magic-link/login
Request Param
String token
Response Body
Related Issue
This ticket is related the the issue