🧪 AuthLabTRAINING LAB6 — Magic link

lab6 · Magic link

No password. Enter a username and we "email" you a one-click sign-in link.

Link lands in the mailbox ↗. Valid 2 min, single use.

How it works

send:   token = JWT.sign({sub, jti}, secret, exp=120s)
        link  = https://lab6.stevegolucky.xyz/verify?token=TOKEN
verify: check signature + exp + jti-not-used → log in, mark jti used