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:3000/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:3000
and login with your email. Then check for the Stytch email and click the sign in button. You should be signed in!
This example app showcases a small portion of what you can accomplish with Stytch. Here are a few ideas to explore:
- Add additional login methods like OAuth or Passwords.
- Secure your app further by building MFA authentication using methods like OTP.
Join the discussion, ask questions, and suggest new features in our Slack community!
Check out the Stytch Forum or email us at [email protected].