stytch-node-sms
This example app uses the Stytch API to send and authenticate one-time passcodes (OTPs).
Running the app
For name continuity, create a new project called "Tropica" and use it for these setup steps. That way, the SMS message will say "Tropica verification code: xxxxxx", matching the app branding.
- Fill in
STYTCH_PROJECT_ID
andSTYTCH_SECRET
in the.env
file. Get your credentials from your Stytch dashboard. - Run
npm install
- Run
npm start
- Visit
http://localhost:4567
and login by SMS passcode!