# magic

Signing in by a link or a six-digit code in a mail, over the
[mail](../mail/README.md) extension. The whole of it is
[docs/magic.md](../../docs/magic.md).

```text
use "pkg:magic/magic.mote"
```

Settings, each optional: `MAGIC_SIGNUP=1`, `MAGIC_SUBJECT`; the mail
extension's own (`MAIL_KEY`, `MAIL_FROM`).

Covered: `magicSend`, `magicCode`, the link's page and its button. Left out:
a link tied to the browser that asked (it signs in whoever holds the mail),
mail in other languages. Tested by `tests/all.sh real_magic`; no real mail
has been sent.
