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 venv
source venv/bin/activate
pip install -r requirements.txt
Set your project ID and secret in the .env
file.
Visit https://stytch.com/dashboard/redirect-urls to add
http://localhost:3000/authenticate
as a valid sign-up and login URL.
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!
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].