Quickstart example app covering the basics for getting up and running with B2B authentication:
- Email Magic Links
- Google OAuth
- Sessions
- RBAC
Ensure you have pip, python and virtualenv installed
git clone https://github.com/stytchauth/stytch-b2b-python-quickstart.git
cd stytch-b2b-python-quickstart
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
Copy .env.template
to .env
and update the values with your Stytch project ID, secret and public token from the API Keys section of the Stytch Dashboard.
Run
python3 main.py
Go to http://localhost:3000/
This example app showcases a small portion of what you can accomplish with Stytch. Next, explore adding additional login methods, such as OAuth or SSO.
Join the discussion, ask questions, and suggest new features in our Slack community!
Check out the Stytch Forum or email us at [email protected].