Testing out Stytch's APIs to create a simple Python Flask web application
Ensure you have pip, python and virtualenv installed
Close this repository and navigate to the folder with the source code on your machine in a terminal window.
We suggest creating a virtualenv and activating it to avoid installing dependencies globally
virtualenv -p python3 venvsource venv/bin/activate
pip install -r requirements.txt
Run python3 main.py
If you're interested in running async instead, run python3 main_async.py
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!
NOTE: When creating the SMS sign up/login, I just set it up with the assumption that I'm the only one using this demo app, so the phone_id/method_id is set to a value (linked to my user in the dashboard)
