Login Flow
1
Request Login
User enters their email address.
2
Magic Link Sent
System validates the user and sends a verification link via email.
3
Verify & Session
User clicks the link, which hits the validation endpoint and sets a secure HTTP-only cookie (
jwt).Security
- Token Expiry: Magic links are short-lived.
- Cookie: The session token is stored in a
HttpOnlycookie to prevent XSS.
APIs
Login Request
Request a magic link.
Get Profile
Retrieve current session user.