Please read the documentation here: https://docs.passwordless.dev
This example uses Flask and provides UI and REST interfaces to interact with the Passwordless Python SDK to the Passwordless API.
Python 3.9 or newer is required to run the application. Install Poetry if not already installed.
Activate shell: poetry shell
Install dependencies: poetry install
- Get your own API keys here: https://admin.passwordless.dev/signup
- Change the value of the
PASSWORDLESS_API_KEYandPASSWORDLESS_API_SECRETin .env file with your API Key and Secret. - (optional) In case of self-hosting, change the value of the
PASSWORDLESS_API_URLwith the base url where your Passwordless API instance is running. - Start the application
flask run - The application will now listen on port
5000e.g. http://localhost:5000, where you can Sign In and Register users within your Application. - For all Passwordless API functionalities supported by Python SDK, navigate to http://localhost:5000/apidocs
- See Example Passwordless REST Api requests and responses