Official Python client for the Locksmith JWT authentication API (signup, login, OAuth, magic links).
Project description
locksmith-py
Official Python 3 client for the Locksmith public auth API.
Install
pip install locksmith-py
Requirements
- Python 3.10+
- API key prefix
lsm_live_orlsm_sbx_(environment is derived automatically).
Quick start
import os
from locksmith import LocksmithClient
c = LocksmithClient(api_key=os.environ["LOCKSMITH_API_KEY"])
result = c.sign_up(email="user@example.com", password="secure-password")
print(result["user"]["id"], result["accessToken"])
me = c.get_user(result["accessToken"])
Local JWT verification
payload = c.verify_token(access_token, public_key_pem)
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
locksmith_py-1.2.4.tar.gz
(4.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file locksmith_py-1.2.4.tar.gz.
File metadata
- Download URL: locksmith_py-1.2.4.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61329025124f117799666c8fb18d6d9b2f132ddb8fb2aa8674e3a29c122205e3
|
|
| MD5 |
254ba58df878de94004813d01abca890
|
|
| BLAKE2b-256 |
752a0619fe8ba777ddb803878dcdba76f3baf9fe2c6be7f2c5defba6c1cb1730
|
File details
Details for the file locksmith_py-1.2.4-py3-none-any.whl.
File metadata
- Download URL: locksmith_py-1.2.4-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5706f73c7f8fa9674e7f3e6964d17ba03b268c1b672beb8831d61133d7a820db
|
|
| MD5 |
71fff9bc3c3a13b778d3f394844f3dfe
|
|
| BLAKE2b-256 |
c8cc7d8cfa4c5bfb54c66a388cdca9d6e5a7065c2155f63aff0396ef9555911d
|