plugins/magic_link library

Magic-link authentication: passwordless sign-in via an emailed link.

Requires the magicLink() plugin on your Better Auth server. Importing this library adds a magicLink getter to BetterAuthClient.

Classes

Typed wrapper for the Better Auth magicLink() plugin.
MagicLinkBody
Body for requesting a magic-link email.

Extensions

MagicLinkBodyPatterns on MagicLinkBody
Adds pattern-matching-related methods to MagicLinkBody.
MagicLinkExtension on BetterAuthClient