Skip to content

Latest commit

 

History

History

flask

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Passwordless Python SDK Example

Please read the documentation here: https://docs.passwordless.dev

Getting Started

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

  1. Get your own API keys here: https://admin.passwordless.dev/signup
  2. Change the value of the PASSWORDLESS_API_KEY and PASSWORDLESS_API_SECRET in .env file with your API Key and Secret.
  3. (optional) In case of self-hosting, change the value of the PASSWORDLESS_API_URL with the base url where your Passwordless API instance is running.
  4. Start the application flask run
  5. The application will now listen on port 5000 e.g. http://localhost:5000, where you can Sign In and Register users within your Application.
  6. For all Passwordless API functionalities supported by Python SDK, navigate to http://localhost:5000/apidocs
  7. See Example Passwordless REST Api requests and responses