Search documentation of phoenix_kit

# PhoenixKitWeb.Users.MagicLinkVerify (phoenix_kit v1.7.87)

Copy Markdown View Source

Controller for handling magic link verification and authentication.

This controller handles the server-side verification of magic link tokens when users click on the links received via email.

## Summary

### Functions

verify(conn, arg2)

Verifies a magic link token and logs the user in.

## Functions

# verify(conn, arg2)

Verifies a magic link token and logs the user in.

This is the endpoint that magic link URLs point to. It:

1. Verifies the token is valid and not expired
2. Logs the user in by creating a session
3. Redirects to the appropriate post-login destination
4. Handles invalid/expired tokens gracefully