A library to make requests to your Auth1 instance
Project description
auth1api
auth1api provides methods to access your Auth1 instance.
Example Usage:
from auth1api import Auth1Client
client = Auth1Client("http://localhost:8080")
client.register("username", "hello@world.com", "foobar")
token, exp_time = client.login("username", None, None, "foobar")
if client.check_auth_token(token):
print("Login success!")
else:
print("Login failure.")
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
auth1api-1.0.0.tar.gz
(1.9 kB
view details)
Built Distribution
File details
Details for the file auth1api-1.0.0.tar.gz
.
File metadata
- Download URL: auth1api-1.0.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3875d4649dd328f45cf8482f9e744ef53511105e43e7133927dfecea98bbf742 |
|
MD5 | f5564631160645e881d8b9bc2bed221b |
|
BLAKE2b-256 | 54c7dc75f307947350f8b8862bb47539a32e96fa794da080afa081e0e5c6d2a7 |
File details
Details for the file auth1api-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: auth1api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd8eb8b49425d113eb4ac1068af83c7721831c755ec9ac103f9c7eee4f24582a |
|
MD5 | b2618d55cdb0c7319bb476d0da2237ce |
|
BLAKE2b-256 | 112a2b8a46c9ffdc5ccded1f7b02539f290faf79329ffd6d57cbe8a7da1754c5 |