@radzor/magic-link-auth
Passwordless authentication via email magic links. Generates signed tokens, sends links via email, and verifies them on callback. Zero-dependency token management with configurable TTL and single-use enforcement.
Install
View source on GitHub →Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| secret* | string | — | Secret key used to sign and verify magic link tokens (HMAC-SHA256).MAGIC_LINK_SECRET |
| tokenTtl | number | 900 | Token expiry in seconds (default: 15 minutes). |
| baseUrl* | string | — | Base URL for magic link callback (e.g. https://app.example.com/auth/verify). |
| singleUse | boolean | true | Invalidate token after first successful verification. |
Secret key used to sign and verify magic link tokens (HMAC-SHA256).
MAGIC_LINK_SECRET