This example app uses the Stytch API to send and authenticate magic links.
- Fill in
STYTCH_PROJECT_ID
andSTYTCH_SECRET
in the.env
file. Get your credentials from your Stytch dashboard. - Add
http://localhost:4567/authenticate
(thePORT
set in.env
) as a valid sign-up and login URL on your Stytch dashboard. - Run
npm i
- Run
npm start
- Visit
http://localhost:4567
and login with your email. Then check for the Stytch email and click the sign in button. You should be signed in!